-
Notifications
You must be signed in to change notification settings - Fork 561
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
Remove border & background from invisible disabled buttons #5423
Conversation
🦋 Changeset detectedLatest commit: 31d2419 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
@@ -430,8 +430,6 @@ | |||
&:disabled, | |||
&[aria-disabled='true']:not([data-loading='true']) { | |||
color: var(--button-invisible-fgColor-disabled); |
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.
background-color: var(--button-invisible-bgColor-disabled); | ||
border-color: var(--button-invisible-borderColor-disabled); |
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 change makes these tokens obsolete. Should we delete them entirely? cc @langermank
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.
I would actually prefer we make this change in primer/primitives
(so make the color transparent
vs deleting this CSS. That way it should carry over to Rails
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.
Just took a few min to make a PR for this which we can test and just use this branch to bump versions if you want. primer/primitives#1121
Could we make a Storybook story just showing all button variants disabled
in a row, move it to the dev
stories and add a VRT test for it? 🙌
Closing this in favor of #5440 |
Removes the background and border from disabled invisible
Button
andIconButton
by updating the sharedButtonBase
CSS styles. It looks likeButtonBase
is fully shipped to CSS Modules so we don't have to update any styled-system styles for this.IconButton
withvariant="invisible"
has non-invisibledisabled
styling #5421Before:
After (video to show hover/active styling):
Screen.Recording.2024-12-12.at.11.35.17.AM.mov
Changelog
New
Changed
disabled
invisible
buttonsRemoved
Rollout strategy
Testing & Reviewing
Merge checklist