Skip to content

Commit

Permalink
fix: add high contrast forced-color-adjust in styles for menu-item co…
Browse files Browse the repository at this point in the history
…mponent (#16009)

* add forced color adjust to host selector

* Change files
  • Loading branch information
khamudom authored Nov 20, 2020
1 parent f1c0db2 commit cfd0cc9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "add forced color adjust to host selector",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-11-19T22:21:59.223Z"
}
3 changes: 2 additions & 1 deletion packages/web-components/src/menu-item/menu-item.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const MenuItemStyles = css`
.end,
::slotted(svg) {
${
/* Glyph size and margin-left is temporary -
/* Glyph size and margin-left is temporary -
replace when adaptive typography is figured out */ ''
} width: 16px;
height: 16px;
Expand All @@ -90,6 +90,7 @@ export const MenuItemStyles = css`
forcedColorsStylesheetBehavior(
css`
:host {
forced-color-adjust: none;
border-color: transparent;
color: ${SystemColors.ButtonText};
fill: ${SystemColors.ButtonText};
Expand Down

0 comments on commit cfd0cc9

Please sign in to comment.