Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Revert "Set default style to link-button mixin (#7340)"
Browse files Browse the repository at this point in the history
This reverts commit 69a6bfd.
  • Loading branch information
wavvves authored Oct 10, 2022
1 parent 69a6bfd commit 706d64d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 0 additions & 8 deletions assets/css/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,7 @@ $fontSizes: (
// Reset <button> style so we can use link style for action buttons.
@mixin link-button() {
@include text-button();
@include font-size(small);
text-decoration: underline;
font-weight: normal;
color: inherit;

&:hover {
text-decoration: none;
color: inherit;
}
}

// Makes sure long words are broken if they overflow the container.
Expand Down
6 changes: 5 additions & 1 deletion assets/js/base/components/filter-reset-button/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.wc-block-components-filter-reset-button {
@include link-button();
@include text-button();
cursor: pointer;

&:not([disabled]):hover {
text-decoration: underline;
}

&[disabled] {
cursor: not-allowed;
}
Expand Down
3 changes: 2 additions & 1 deletion assets/js/blocks/active-filters/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
overflow: hidden;

.wc-block-active-filters__clear-all {
@include link-button();
@include font-size(small);
border: none;
margin-top: 15px;
padding: 0;
text-decoration: underline;
cursor: pointer;
float: right;

Expand Down

0 comments on commit 706d64d

Please sign in to comment.