Skip to content

Commit d912aa7

Browse files
authored
A11y Fixes: BUG 11009019- updated focus-visible pros for legend (#35718)
1 parent 72fa991 commit d912aa7

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "A11y fix: updated focus-visible outline data",
4+
"packageName": "@fluentui/react-charts",
5+
"email": "132879294+v-baambati@users.noreply.github.com",
6+
"dependentChangeType": "patch"
7+
}

packages/charts/react-charts/library/src/components/Legends/useLegendsStyles.styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ const useStyles = makeStyles({
6060
[HighContrastSelector]: {
6161
color: 'WindowText',
6262
forcedColorAdjust: 'none',
63+
'&:focus-visible': {
64+
outline: `${tokens.strokeWidthThick} solid canvasText`,
65+
outlineOffset: `calc(${tokens.strokeWidthThick} * -1)`,
66+
},
6367
},
6468
'&:hover': {
6569
[HighContrastSelector]: {

0 commit comments

Comments
 (0)