Skip to content

Commit

Permalink
[#102] Removing parent wp-block class from button css
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget committed Jun 14, 2024
1 parent 0847df9 commit b06e18f
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions wp-content/themes/wp-starter/src/styles/core-blocks/buttons.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
@layer components {
.wp-block,
.acf-block {
.wp-block-button {
.wp-block-button {
.wp-block-button__link {
@apply btn-contained;
}

&.is-style-outline {
.wp-block-button__link {
@apply btn-contained;
@apply btn-outlined;
}
}
}

&.is-style-outline {
.wp-block-button__link {
@apply btn-outlined;
}
/* Light versions for dark mode*/
&[class*='has-dark'] {
.wp-block-button {
.wp-block-button__link {
@apply btn-contained-light;
}
}

/* Light versions for dark mode*/
&[class*='has-dark'] {
.wp-block-button {
&.is-style-outline {
.wp-block-button__link {
@apply btn-contained-light;
}

&.is-style-outline {
.wp-block-button__link {
@apply btn-outlined-light;
}
@apply btn-outlined-light;
}
}
}
Expand Down

0 comments on commit b06e18f

Please sign in to comment.