Skip to content

Commit

Permalink
[Accessibility] Fix WeatherLarge card for accessibility (microsoft#7517)
Browse files Browse the repository at this point in the history
* Fix card for accessibility

* Fix centering
  • Loading branch information
almedina-ms committed Jun 29, 2022
1 parent 695683c commit 3a1a288
Showing 1 changed file with 60 additions and 53 deletions.
113 changes: 60 additions & 53 deletions samples/v1.0/Scenarios/WeatherLarge.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,30 @@
"text": "Tue, Nov 5, 2019",
"weight": "bolder",
"size": "large",
"wrap": true
"wrap": true,
"color": "dark"
},
{
"type": "TextBlock",
"text": "32 / 50",
"size": "medium",
"spacing": "none",
"wrap": true
"wrap": true,
"color": "dark"
},
{
"type": "TextBlock",
"text": "31% chance of rain",
"spacing": "none",
"wrap": true
"wrap": true,
"color": "dark"
},
{
"type": "TextBlock",
"text": "Winds 4.4 mph SSE",
"spacing": "none",
"wrap": true
"wrap": true,
"color": "dark"
}
]
}
Expand All @@ -65,7 +69,8 @@
"type": "TextBlock",
"horizontalAlignment": "center",
"wrap": true,
"text": "Wednesday"
"text": "Wednesday",
"color": "dark"
},
{
"type": "Image",
Expand All @@ -74,18 +79,17 @@
"altText": "Drizzly weather"
},
{
"type": "FactSet",
"horizontalAlignment": "right",
"facts": [
{
"title": "High",
"value": "50"
},
{
"title": "Low",
"value": "32"
}
]
"type": "TextBlock",
"text": "**High**\t50",
"color": "dark",
"horizontalAlignment": "center"
},
{
"type": "TextBlock",
"text": "**Low**\t32",
"color": "dark",
"spacing": "none",
"horizontalAlignment": "center"
}
],
"selectAction": {
Expand All @@ -102,7 +106,8 @@
"type": "TextBlock",
"horizontalAlignment": "center",
"wrap": true,
"text": "Thursday"
"text": "Thursday",
"color": "dark"
},
{
"type": "Image",
Expand All @@ -111,17 +116,17 @@
"altText": "Mostly cloudy weather"
},
{
"type": "FactSet",
"facts": [
{
"title": "High",
"value": "50"
},
{
"title": "Low",
"value": "32"
}
]
"type": "TextBlock",
"text": "**High**\t50",
"color": "dark",
"horizontalAlignment": "center"
},
{
"type": "TextBlock",
"text": "**Low**\t32",
"color": "dark",
"spacing": "none",
"horizontalAlignment": "center"
}
],
"selectAction": {
Expand All @@ -138,7 +143,8 @@
"type": "TextBlock",
"horizontalAlignment": "center",
"wrap": true,
"text": "Friday"
"text": "Friday",
"color": "dark"
},
{
"type": "Image",
Expand All @@ -147,17 +153,17 @@
"altText": "Mostly cloudy weather"
},
{
"type": "FactSet",
"facts": [
{
"title": "High",
"value": "59"
},
{
"title": "Low",
"value": "32"
}
]
"type": "TextBlock",
"text": "**High**\t59",
"color": "dark",
"horizontalAlignment": "center"
},
{
"type": "TextBlock",
"text": "**Low**\t32",
"color": "dark",
"spacing": "none",
"horizontalAlignment": "center"
}
],
"selectAction": {
Expand All @@ -174,7 +180,8 @@
"type": "TextBlock",
"horizontalAlignment": "center",
"wrap": true,
"text": "Saturday"
"text": "Saturday",
"color": "dark"
},
{
"type": "Image",
Expand All @@ -183,17 +190,17 @@
"altText": "Mostly cloudy weather"
},
{
"type": "FactSet",
"facts": [
{
"title": "High",
"value": "50"
},
{
"title": "Low",
"value": "32"
}
]
"type": "TextBlock",
"text": "**High**\t50",
"color": "dark",
"horizontalAlignment": "center"
},
{
"type": "TextBlock",
"text": "**Low**\t32",
"color": "dark",
"spacing": "none",
"horizontalAlignment": "center"
}
],
"selectAction": {
Expand Down

0 comments on commit 3a1a288

Please sign in to comment.