-
Notifications
You must be signed in to change notification settings - Fork 538
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
feat(SubNav): Convert SubNav to CSS modules behind team feature flag #5202
Conversation
🦋 Changeset detectedLatest commit: 1ec2c06 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! |
|
||
.SubNav-octicon { | ||
color: ${get('colors.fg.muted')}; |
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.
Removed the SubNav-octicon
stylings since it does not appear that we add this class anywhere, let me know if that is correct.
size-limit report 📦
|
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 think this component might be missing VRT tests all together (I couldn't find any). You might want to open a separate PR to get that merged in first to check against your PR https://github.com/primer/react/blob/main/contributor-docs/testing.md#components
And then for the dev
stories, you would want to add those to VRT as well 😄
/* stylelint-disable-next-line primer/colors */ | ||
border-color: var(--bgColor-accent-emphasis); |
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.
/* stylelint-disable-next-line primer/colors */ | |
border-color: var(--bgColor-accent-emphasis); | |
border-color: var(--borderColor-accent-emphasis); |
Should actually be the same end result
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 Reverted this change since VRT was failing due to the border having a different color with Dark Hight Contrast
transition: background-color 0.2s ease; | ||
} | ||
|
||
&:is([data-selected]) { |
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.
Should this one be :where
?
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.
When I tried using :where
, the hover/focus styling was overriding the selected styling, which is why I switched to :is
. Open to alternative solutions.
🟢 golden-jobs completed with status |
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/349556 |
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.
Seems good to go ⚡
Closes https://github.com/github/primer/issues/4363
Changelog
New
Changed
Convert SubNav to CSS modules behind team feature flag
Removed
Rollout strategy
Testing & Reviewing
Merge checklist