Mini Cart drawer close button: inherit text color and improve alignment (https://github.com/woocommerce/woocommerce-blocks/pull/8605)
* Make Mini Cart drawer close button inherit the color * Fix Mini Cart drawer close button alignment * Increase opacity when Mini Cart drawer close icon is hover, focused or active
This commit is contained in:
parent
0acbeb4770
commit
f65a1afe15
|
@ -116,13 +116,22 @@ $drawer-width-mobile: 100vw;
|
|||
.components-button {
|
||||
@include reset-box();
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
opacity: 0.6;
|
||||
// The SVG has some white spacing around, thus we have to set this magic number.
|
||||
right: 8px;
|
||||
top: 0;
|
||||
// Increase clickable area.
|
||||
padding: 1em;
|
||||
margin: -1em;
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
> span {
|
||||
@include visually-hidden();
|
||||
}
|
||||
|
|
|
@ -49,11 +49,6 @@
|
|||
.wc-block-mini-cart__drawer {
|
||||
font-size: 1rem;
|
||||
|
||||
.components-modal__content .components-modal__header .components-button {
|
||||
padding: unset;
|
||||
margin: unset;
|
||||
}
|
||||
|
||||
.wp-block-woocommerce-mini-cart-contents {
|
||||
.wc-block-components-notices {
|
||||
margin: #{$gap} #{$gap-largest} -#{$gap} #{$gap};
|
||||
|
@ -127,7 +122,7 @@
|
|||
|
||||
h2.wc-block-mini-cart__title {
|
||||
@include font-size(larger);
|
||||
margin: $gap-largest $gap 0;
|
||||
margin: $gap $gap 0;
|
||||
}
|
||||
|
||||
.wc-block-mini-cart__items {
|
||||
|
@ -223,10 +218,3 @@ h2.wc-block-mini-cart__title {
|
|||
.admin-bar .wp-block-woocommerce-filled-mini-cart-contents-block {
|
||||
height: calc(100vh - 32px);
|
||||
}
|
||||
|
||||
.admin-bar
|
||||
.wc-block-components-drawer
|
||||
.components-modal__header
|
||||
.components-button {
|
||||
top: 32px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue