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
Add specificity to root selector to avoid conflicts in Calypsoified wp-admin. #1549
Conversation
assets/stylesheets/_components.scss
Outdated
@@ -33,6 +33,7 @@ | |||
@import 'components/screen-reader-text/style'; | |||
@import 'components/segmented-control/style'; | |||
@import 'components/spinner/style'; | |||
@import 'components/token-field/style'; |
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.
This shouldn't be needed, the stylesheet for token-field
is already included as "modular CSS" (see here).
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.
If specificity is a problem, you should add the .wp-core-ui.wp-admin
prefix to here.
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.
Fixed in 9d1f95d. Thank you!
… wp-calypso style wrapper.
@@ -1,6 +1,6 @@ | |||
@import 'shared/utils'; | |||
|
|||
.wcc-root { |
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.
Sorry I missed this. This solution would break horribly in Store-in-dotcom, because Calypso doesn't add the wp-admin wp-core-ui
classes to the </body>
, so no CSS would be applied.
Edit: Nevermind, I still have vacation brain, this won't be loaded in Calypso at all. Disregard.
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.
Works as expected.
This PR seeks to fix style conflicts when running within a "Calypsoified"
/wp-admin
. See: p58i-7nL-p2 (#comment-40377
)To test:
npm run dist