-
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
fix: Fixing SplitButton
styles in High Contrast Mode
#31253
Merged
khmakoto
merged 5 commits into
microsoft:master
from
khmakoto:v8/SplitButton/highContrastStyles
May 4, 2024
Merged
fix: Fixing SplitButton
styles in High Contrast Mode
#31253
khmakoto
merged 5 commits into
microsoft:master
from
khmakoto:v8/SplitButton/highContrastStyles
May 4, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
khmakoto
commented
May 1, 2024
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. |
fabricteam
reviewed
May 1, 2024
📊 Bundle size reportUnchanged fixtures
|
smhigley
reviewed
May 1, 2024
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.
Yay selector formatting cleanup! :D
packages/react/src/components/Button/SplitButton/SplitButton.styles.ts
Outdated
Show resolved
Hide resolved
packages/react/src/components/Button/SplitButton/SplitButton.styles.ts
Outdated
Show resolved
Hide resolved
packages/react/src/components/Button/SplitButton/SplitButton.styles.ts
Outdated
Show resolved
Hide resolved
packages/react/src/components/Button/SplitButton/SplitButton.styles.ts
Outdated
Show resolved
Hide resolved
packages/react/src/components/Button/SplitButton/SplitButton.styles.ts
Outdated
Show resolved
Hide resolved
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
BaseButton | mount | 632 | 626 | 5000 | |
Breadcrumb | mount | 1676 | 1660 | 1000 | |
Checkbox | mount | 1716 | 1695 | 5000 | |
CheckboxBase | mount | 1490 | 1502 | 5000 | |
ChoiceGroup | mount | 2942 | 2929 | 5000 | |
ComboBox | mount | 670 | 662 | 1000 | |
CommandBar | mount | 6480 | 6406 | 1000 | |
ContextualMenu | mount | 12080 | 12082 | 1000 | |
DefaultButton | mount | 798 | 793 | 5000 | |
DetailsRow | mount | 2173 | 2204 | 5000 | |
DetailsRowFast | mount | 2186 | 2224 | 5000 | |
DetailsRowNoStyles | mount | 2014 | 2047 | 5000 | |
Dialog | mount | 2805 | 2799 | 1000 | |
DocumentCardTitle | mount | 218 | 228 | 1000 | |
Dropdown | mount | 1971 | 1989 | 5000 | |
FocusTrapZone | mount | 1157 | 1168 | 5000 | |
FocusZone | mount | 1079 | 1063 | 5000 | |
GroupedList | mount | 37557 | 41738 | 2 | |
GroupedList | virtual-rerender | 20038 | 20140 | 2 | |
GroupedList | virtual-rerender-with-unmount | 51574 | 50822 | 2 | |
GroupedListV2 | mount | 222 | 234 | 2 | |
GroupedListV2 | virtual-rerender | 216 | 215 | 2 | |
GroupedListV2 | virtual-rerender-with-unmount | 217 | 221 | 2 | |
IconButton | mount | 1126 | 1129 | 5000 | |
Label | mount | 328 | 344 | 5000 | |
Layer | mount | 2745 | 2685 | 5000 | |
Link | mount | 396 | 410 | 5000 | |
MenuButton | mount | 1008 | 1005 | 5000 | |
MessageBar | mount | 21296 | 21365 | 5000 | |
Nav | mount | 2006 | 2012 | 1000 | |
OverflowSet | mount | 795 | 787 | 5000 | |
Panel | mount | 1819 | 1814 | 1000 | |
Persona | mount | 743 | 744 | 1000 | |
Pivot | mount | 917 | 883 | 1000 | |
PrimaryButton | mount | 945 | 919 | 5000 | |
Rating | mount | 4642 | 4565 | 5000 | |
SearchBox | mount | 908 | 948 | 5000 | |
Shimmer | mount | 1852 | 1861 | 5000 | |
Slider | mount | 1318 | 1312 | 5000 | |
SpinButton | mount | 2968 | 2871 | 5000 | |
Spinner | mount | 396 | 407 | 5000 | |
SplitButton | mount | 1889 | 1891 | 5000 | |
Stack | mount | 401 | 406 | 5000 | |
StackWithIntrinsicChildren | mount | 872 | 869 | 5000 | |
StackWithTextChildren | mount | 2646 | 2642 | 5000 | |
SwatchColorPicker | mount | 6270 | 6303 | 5000 | |
TagPicker | mount | 1448 | 1450 | 5000 | |
Text | mount | 369 | 375 | 5000 | |
TextField | mount | 915 | 919 | 5000 | |
ThemeProvider | mount | 840 | 855 | 5000 | |
ThemeProvider | virtual-rerender | 589 | 587 | 5000 | |
ThemeProvider | virtual-rerender-with-unmount | 1279 | 1324 | 5000 | |
Toggle | mount | 621 | 599 | 5000 | |
buttonNative | mount | 187 | 186 | 5000 |
smhigley
approved these changes
May 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previous Behavior
SplitButton
's styles in High Contrast Mode were inconsistent and wrong when interacting with them.New Behavior
This PR fixes the
SplitButton
's styles while in High Contrast Mode. A new example for a primarySplitButton
with its main action disabled has been added to the documentation as well.As part of this PR, the usage of the
selectors
word across styles' files in theButton
components has been removed, since it's no longer needed bymergeStyles
anymore and could save us some bundle size.Related Issue(s)