Skip to content

Commit

Permalink
fix: menu WHCM
Browse files Browse the repository at this point in the history
  • Loading branch information
jnurthen committed Apr 7, 2022
1 parent ef76b02 commit feee3be
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions components/menu/skin.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,45 @@ governing permissions and limitations under the License.
.spectrum-Menu-divider {
background-color: var(--spectrum-listitem-m-texticon-divider-color);
}

@media (forced-colors: active) {
.spectrum-Menu-divider {
background-color: CanvasText;
forced-color-adjust: none;
}
.spectrum-Menu-item {
forced-color-adjust: none;

--spectrum-listheading-text-color: ButtonText;
--spectrum-listitem-m-texticon-background-color: ButtonFace;
--spectrum-listitem-m-texticon-background-color-disabled: ButtonFace;
--spectrum-listitem-m-texticon-background-color-down: ButtonFace;
--spectrum-listitem-m-texticon-background-color-hover: Highlight;
--spectrum-listitem-m-texticon-background-color-key-focus: Highlight;
--spectrum-listitem-m-texticon-divider-color: ButtonText;
--spectrum-listitem-m-texticon-focus-indicator-color: Highlight;
--spectrum-listitem-m-texticon-text-color: ButtonText;
--spectrum-listitem-m-texticon-text-color-disabled: GrayText;
--spectrum-listitem-m-texticon-text-color-hover: HighlightText;
--spectrum-listitem-m-texticon-text-color-key-focus: HighlightText;
--spectrum-listitem-m-texticon-text-color-selected: ButtonText;
--spectrum-listitem-m-texticon-ui-icon-color-selected: Highlight;
&:not(.is-disabled)
{
&:hover,
&:focus,
&.is-highlighted,
&.is-open,
&:focus-ring,
&.is-focused {
&.is-selected {
.spectrum-Menu-checkmark {
color: HighlightText;
}
}
background-color: var(--spectrum-listitem-m-texticon-background-color-key-focus);
color: var(--spectrum-listitem-m-texticon-text-color-key-focus);
}
}
}
}

0 comments on commit feee3be

Please sign in to comment.