-
Notifications
You must be signed in to change notification settings - Fork 563
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(BaseStyles): Fix Typography and Common props when CSS modules feature flag is enabled #5444
Conversation
🦋 Changeset detectedLatest commit: 5a70234 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! |
data-color-mode={colorScheme?.includes('dark') ? 'dark' : 'light'} | ||
data-light-theme={dayScheme} | ||
data-dark-theme={nightScheme} | ||
style={systemProps} |
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 explicitly add the system props to style
because Box
does not support whiteSpace
when it is passed as a prop. Open to changing this if there are alternatives to this
size-limit report 📦
|
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/355428 |
🟢 golden-jobs completed with status |
Related to slack (hubbers only)
The issue reported was the inability to scroll on the project's settings page when the CSS modules feature flag was enabled. This was due to a missing
display: "contents"
styling from a prop passed toBaseStyles
. This PR is ensure the props passed to BaseStyles are correctly styled when ff is enabled.Changelog
New
includesSystemProps
util fromText
to be reused inBaseStyles
getTypographyAndCommonProps
to return an object of the typography and common propsChanged
toggleStyledComponent
and updated the component to check for system props passed throughRemoved
Rollout strategy
Testing & Reviewing
Merge checklist