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

Commit

Permalink
Update additional remove button styles.
Browse files Browse the repository at this point in the history
- Add hover state to remove button on chip layout.
- Update disabled styles to remove button in both layouts (mainly relevant
to the editor view).
  • Loading branch information
danielwrobert committed Aug 16, 2022
1 parent d487622 commit ac6cf01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions assets/js/base/components/chip/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ button.wc-block-components-chip:hover > .wc-block-components-chip__remove,
button.wc-block-components-chip:focus > .wc-block-components-chip__remove,
.wc-block-components-chip__remove:hover,
.wc-block-components-chip__remove:focus {
fill: $alert-red;
fill: #fff;
background: #7956ad;
}

button.wc-block-components-chip:disabled > .wc-block-components-chip__remove,
.wc-block-components-chip__remove:disabled {
fill: $gray-600;
fill: #fff;
cursor: not-allowed;
}
3 changes: 0 additions & 3 deletions assets/js/blocks/active-filters/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
.wc-block-active-filters__list-item-name {
margin-top: 9px;
}
.wc-block-active-filters__list-item-remove:hover {
color: #7956ad;
}
}
5 changes: 5 additions & 0 deletions assets/js/blocks/active-filters/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
&:hover {
color: #7956ad;
}

&:disabled {
color: $gray-200;
cursor: not-allowed;
}
}

.wc-block-active-filters__list--chips {
Expand Down

0 comments on commit ac6cf01

Please sign in to comment.