Skip to content

Commit

Permalink
Fix greyed out legend key contrast ratio (#24714)
Browse files Browse the repository at this point in the history
* fix greyed out legend key contrast ratio

* add change file
  • Loading branch information
krkshitij authored Sep 8, 2022
1 parent f1f4ab4 commit a67fc63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Fix greyed out legend key contrast ratio",
"packageName": "@fluentui/react-charting",
"email": "kumarkshitij@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const getStyles = (props: ILegendStyleProps): ILegendsStyles => {
...fonts.small,
lineHeight: '16px',
color: theme?.semanticColors.bodyText,
opacity: props.colorOnSelectedState === palette.white ? '0.6' : '',
opacity: props.colorOnSelectedState === palette.white ? '0.67' : '',
},
hoverChange: {
width: '12px',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ exports[`Legends snapShot testing renders Legends correctly 1`] = `
font-size: 12px;
font-weight: 400;
line-height: 16px;
opacity: 0.6;
opacity: 0.67;
}
>
Legend 17
Expand Down Expand Up @@ -3171,7 +3171,7 @@ exports[`Legends snapShot testing renders allowFocusOnLegends correctly 1`] = `
font-size: 12px;
font-weight: 400;
line-height: 16px;
opacity: 0.6;
opacity: 0.67;
}
>
Legend 17
Expand Down Expand Up @@ -4764,7 +4764,7 @@ exports[`Legends snapShot testing renders canSelectMultipleLegends correctly 1`]
font-size: 12px;
font-weight: 400;
line-height: 16px;
opacity: 0.6;
opacity: 0.67;
}
>
Legend 17
Expand Down Expand Up @@ -6357,7 +6357,7 @@ exports[`Legends snapShot testing renders styles correctly 1`] = `
font-size: 12px;
font-weight: 400;
line-height: 16px;
opacity: 0.6;
opacity: 0.67;
}
>
Legend 17
Expand Down

0 comments on commit a67fc63

Please sign in to comment.