-
Notifications
You must be signed in to change notification settings - Fork 578
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(PageHeader): Convert PageHeader to CSS modules behind feature flag #5332
Conversation
🦋 Changeset detectedLatest commit: d7b290e 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 📦
|
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/352879 |
🔴 golden-jobs completed with status |
--context-area-region-order-parent-link: 0; | ||
--context-area-region-order-context-bar: 1; | ||
--context-area-region-order-context-area-actions: 2; | ||
} |
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.
Something that crossed my mind reviewing this, what are our feelings about putting these css variables in the :root
? I don't believe the css modules conversion does anything about it and it ends up in :root
in prod. @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 agree, it might be better to tuck these into the .PageHeader
class instead of :root
isCssModules: boolean, | ||
isHidden: boolean | ResponsiveValue<boolean>, | ||
): { | ||
'data-is-hidden-all'?: boolean |
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.
Such a tiny nitpick and I can't tell if this is new or existed already, but I would just name these data-hidden-X
and remove "is" 😄
…i-am/css-modules-page-header
…com/primer/react into hussam-i-am/css-modules-page-header
Closes https://github.com/github/primer/issues/4300
Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing
Merge checklist