-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ToggleButton: Re-introducing ToggleButton using the latest version of makeStyles #17566
Conversation
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 02c99b6:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 0913259cdea5a3d692720299516aec613b7c072a (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Let me know when this is ready and I'll approve for the package.json changes (not really the right person to look at the rest) |
@@ -122,17 +129,19 @@ export const makeButtonTokens = (theme: Theme): ButtonVariantTokens => ({ | |||
background: theme.alias.color.brand.brandBackgroundHover, | |||
borderColor: 'transparent', | |||
color: theme.alias.color.neutral.neutralForegroundInvertedAccessible, |
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.
This in particular seems weird - background is using brand and foreground is using something which doesn't relate to brand. Shouldn't foregrounds and backgrounds use the same color group?
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.
@dzearing and I spoke offline about this and it does seem like we are missing some logic in here to add the brand foreground colors. There should also probably be a way to catch that we're not using foreground and background colors from the same alias group on any one variant that we also need to follow up with.
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
… makeStyles (microsoft#17566) * ToggleButton: Re-introducing ToggleButton using the latest version of makeStyles. * Change files * Adding checked VR test. * Renaming draftState to state. * Updating API. * Adding primary checked vr tests.
Pull request checklist
$ yarn change
Description of changes
This PR follows #17534.
This PR re-introduces the
ToggleButton
component with the latestmakeStyles
changes under@fluentui/react-button
after having been removed for the initial release of@fluentui/react-components
.PRs re-introducing
MenuButton
andSplitButton
.PRs reintroducing the
block
,circular
,subtle
andtransparent
props will follow.