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

Ensure that the "Remove Item" link on Cart block has a hover state #11526

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions assets/css/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,22 @@ $fontSizes: (
text-decoration: underline;
}

@mixin hover-effect() {
&:hover {
text-decoration: none;
color: inherit;
cursor: pointer;
}
}

// Reset <button> style so we can use link style for action buttons in filter blocks
@mixin filter-link-button() {
@include link-button();
@include hover-effect();
@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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ table.wc-block-cart-items {
}
.wc-block-cart-item__quantity {
.wc-block-cart-item__remove-link {
@include link-button;
@include link-button();
@include hover-effect();
@include font-size( smaller );

text-transform: none;
Expand Down
Loading