-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[web-components] add 'menuitemcheckbox' and 'menuitemradio' styles to fluent-menu-item #17305
[web-components] add 'menuitemcheckbox' and 'menuitemradio' styles to fluent-menu-item #17305
Conversation
8c7e70d
to
3ff2422
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 9a3d9da:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 71010087992167fbc95e4fd1274f8ca5180b7cc8 (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]) { | ||
display: block; | ||
pointer-events: none; | ||
} | ||
`.withBehaviors( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to fix high contrast on the inputs you can add these rule sets to forcedColorsStylesheetBehavior
:host .checkbox,
:host .radio{
border-color: ${SystemColors.ButtonText};
background: ${SystemColors.HighlightText};
}
:host([checked="true"]) .checkbox,
:host([checked="true"]) .radio {
background: ${SystemColors.HighlightText};
border-color: ${SystemColors.HighlightText};
}
:host(:hover) .checkbox,
:host(:hover) .radio,
:host(:${focusVisible}) .checkbox,
:host(:${focusVisible}) .radio,
:host([checked="true"]:hover) .checkbox,
:host([checked="true"]:hover) .radio,
:host([checked="true"]:${focusVisible}) .checkbox,
:host([checked="true"]:${focusVisible}) .radio {
border-color: ${SystemColors.HighlightText};
}
:host([aria-checked="true"]) {
background: ${SystemColors.Highlight};
color: ${SystemColors.HighlightText};
}
:host([aria-checked="true"]) .checkbox-indicator,
:host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]),
:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]) {
fill: ${SystemColors.Highlight};
}
:host([aria-checked="true"]) .radio-indicator {
background: ${SystemColors.Highlight};
}
:host([checked="true"]) .start,
:host([checked="true"]) .end {
fill: ${SystemColors.HighlightText};
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @khamudom - updated!
🎉 Handy links: |
… fluent-menu-item (microsoft#17305) * add menuitemcheckbox and menuitemradio styling to menu-item * Change files * add high contrast styles
… fluent-menu-item (microsoft#17305) * add menuitemcheckbox and menuitemradio styling to menu-item * Change files * add high contrast styles
Pull request checklist
$ yarn change
Description of changes
(give an overview)
Focus areas to test
(optional)