-
Notifications
You must be signed in to change notification settings - Fork 116
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
Move Overlay
styles to PVC
#1651
Conversation
Apparently they can't be nested
🦋 Changeset detectedLatest commit: 970da65 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 |
/* Override .close-button's `border: 0` that triggers a border-color transition on hover */ | ||
&.close-button { | ||
border: var(--primer-borderWidth-thin, 1px) solid transparent; | ||
} |
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.
Without this override the border would transition:
border-color: initial
(dark gray) ->border-color: transparent
Screen.Recording.2022-12-01.at.15.59.29.mov
Might not be needed once Primer::Beta::CloseButton
is updated to IconButton
.
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.
Nice work!
Description
This is part of #1342 and an alternative to #1648. It adds the
Overlay
styles from PCSS. There should be no visual changes.In #1401 we can eventually rename
dialog.pcss
->overlay.pcss
, but this PR is intended to be ready before, see #1648 (review).Integration
Yes, the following lines can be removed on dotcom:
- @import '@primer/css/overlay/overlay.scss';
Merge checklist
Added/updated testsAdded/updated documentationAdded/updated previews