-
Notifications
You must be signed in to change notification settings - Fork 565
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
refactor(ButtonBase): update selector to have specificty 0,1,0 #5584
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: c0cbbd4 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 📦
|
@@ -98,7 +98,7 @@ | |||
|
|||
/* Button layout */ | |||
|
|||
& .ButtonContent { | |||
& :where(.ButtonContent) { |
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 suspect .ButtonContent
and .Label
don't need where
🤔 just a variant of ButtonBase
right?
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.
@langermank honestly just did this to keep the specificity the same but have no idea if it's needed 🤷
Specifically right now this would be: :where(.ButtonBase) .ButtonContent
at 0,1,0
and without the :where
it would be 0,2,0
with .ButtonBase .ButtonContent
.
Would it be helpful if I did not include :where()
for descendant selectors unless we see a problem during testing?
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.
Ahh okay, no, I think that's fair. Carry on!
Closes https://github.com/github/primer/issues/4703
Changelog
New
Changed
.ButtonBase
to have specificity of at least0,1,0
to no longer get overridden by reset styles or equivalent selectors with0,1,0
specificityRemoved
Rollout strategy