Skip to content

Commit

Permalink
Merge pull request #46 from WebDevStudios/feature/WDSBT-10-remove-har…
Browse files Browse the repository at this point in the history
…dcoded-icons

feature / WDSBT-10 remove hardcoded icons
  • Loading branch information
thatmitchcanter authored Nov 1, 2024
2 parents 305bbb1 + 5ee90ec commit 8c42d06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 40 deletions.
4 changes: 0 additions & 4 deletions assets/images/icons/icon-circle-right.svg

This file was deleted.

38 changes: 3 additions & 35 deletions assets/scss/blocks/core/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,6 @@
opacity: 0.15;
pointer-events: none;
}

&::after {
background-color: currentcolor;
content: '';
display: inline-block;
height: 1rem;
margin-left: 0.5rem;
margin-right: unset;
mask-image: url(../../../images/icons/icon-circle-right.svg);
mask-size: contain;
left: unset;
position: absolute;
right: 0.75rem;
vertical-align: middle;
width: 1rem;
z-index: 0;
}
}

&.is-style-minimal,
Expand Down Expand Up @@ -68,36 +51,21 @@
&.has-size-m {
.wp-block-button__link {
font-size: var(--wp--preset--font-size--s);
padding: 0.625rem 2.5rem 0.625rem 1.25rem;

&::after {
height: 1.25rem;
width: 1.25rem;
}
padding: 0.625rem 1.25rem 0.625rem 1.25rem;
}
}

&.has-size-l {
.wp-block-button__link {
font-size: var(--wp--preset--font-size--m);
padding: 0.9375rem 3rem 0.9375rem 1.25rem;

&::after {
height: 1.5rem;
width: 1.5rem;
}
padding: 0.9375rem 1.25rem 0.9375rem 1.25rem;
}
}

&.has-size-xl {
.wp-block-button__link {
font-size: var(--wp--preset--font-size--l);
padding: 0.9375rem 3rem 0.9375rem 1.25rem;

&::after {
height: 1.75rem;
width: 1.75rem;
}
padding: 0.9375rem 1.25rem 0.9375rem 1.25rem;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
"spacing": {
"padding": {
"top": "0.5rem",
"right": "2.5rem",
"right": "1rem",
"bottom": "0.5rem",
"left": "1rem"
}
Expand Down

0 comments on commit 8c42d06

Please sign in to comment.