Skip to content

Commit

Permalink
Merge pull request #143 from 10up/feature/fix-editor-style-bleed
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy authored Jun 24, 2022
2 parents e9d71d9 + eb44bc2 commit 983fe2b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions themes/10up-theme/assets/css/frontend/base/button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Ensure that we are not overriding the editor styles of the
* WordPress Components.
*
* This is a workaround for: https://github.com/WordPress/gutenberg/issues/10178
*
* using :where to prevent the specificity increase of using :not
*/
button:where(:not(.components-button)) {

}
2 changes: 2 additions & 0 deletions themes/10up-theme/assets/css/frontend/base/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url("prefers-reduced-motion.css");
@import url("wordpress.css");
@import url("utils.css");
@import url("button.css");
@import url("link.css");
11 changes: 11 additions & 0 deletions themes/10up-theme/assets/css/frontend/base/link.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Ensure that we are not overriding the editor styles of the
* WordPress Components.
*
* This is a workaround for: https://github.com/WordPress/gutenberg/issues/10178
*
* using :where to prevent the specificity increase of using :not
*/
a:where(:not(.components-external-link)) {

}

0 comments on commit 983fe2b

Please sign in to comment.