Skip to content

Commit

Permalink
fix(v8 ColorSwatchPicker): Add border to white color in high contrast…
Browse files Browse the repository at this point in the history
… mode (#33136)
  • Loading branch information
emmayjiang authored Oct 24, 2024
1 parent 23f7636 commit 62e24ae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix(v8 ColorSwatchPicker): Add border to white color in high contrast mode",
"packageName": "@fluentui/react",
"email": "jiangemma@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ export const getStyles = (props: IColorPickerGridCellStyleProps): IColorPickerGr
// fake a border for white
backgroundColor: buttonBorderIsWhite,
padding: 1,
selectors: {
[HighContrastSelector]: {
outline: `1px solid ButtonText`,
},
},
},
],
// the <svg> that holds the color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2226,6 +2226,7 @@ exports[`SwatchColorPicker renders SwatchColorPicker correctly 1`] = `
}
@media screen and (-ms-high-contrast: active), screen and (forced-colors: active){& {
border-color: Window;
outline: 1px solid ButtonText;
}
.ms-Fabric--isFocusVisible &:focus::after {
border-color: #605e5c;
Expand Down

0 comments on commit 62e24ae

Please sign in to comment.