-
Notifications
You must be signed in to change notification settings - Fork 605
chore(Overlay): Remove the CSS modules feature flag from the Overlay component #5982
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
Conversation
🦋 Changeset detectedLatest commit: cb2d313 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/375243 |
🟢 golden-jobs completed with status |
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.
Pull Request Overview
This PR removes the CSS modules feature flag from the Overlay component to simplify and streamline the component’s styling logic. Key changes include:
- Updating the snapshot for AnchoredOverlay by removing the CSS modules based styling.
- Refactoring the Overlay component to use BoxWithFallback instead of a styled component based on a feature flag.
- Skipping two alignment tests for the Overlay component.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/react/src/tests/snapshots/AnchoredOverlay.test.tsx.snap | Updated snapshot reflecting removal of the old CSS modules styles |
packages/react/src/Overlay/Overlay.tsx | Removed the CSS modules feature flag and refactored the component to use BoxWithFallback |
packages/react/src/Overlay/Overlay.test.tsx | Marked two alignment tests as skipped |
.changeset/modern-doodles-learn.md | Updated changeset documenting the removal |
Comments suppressed due to low confidence (2)
packages/react/src/Overlay/Overlay.test.tsx:205
- Consider adding an inline comment explaining why this alignment test is skipped and under what conditions it should be re-enabled.
it.skip('should right align when given `right: 0` and `position: fixed`', async () => {
packages/react/src/Overlay/Overlay.test.tsx:235
- Consider adding an inline comment that clarifies the rationale behind skipping this alignment test to improve maintainability and clarity for future developers.
it.skip('should left align when not given position and left props', async () => {
Closes https://github.com/github/primer/issues/4135
Changelog
New
Changed
Removed
Remove the CSS modules feature flag from the Overlay component
Rollout strategy
Merge checklist