|
@@ -1,4 +1,5 @@
|
|
|
// NOTE: These remain for the styling of buttons that are NOT blocks and is used elsewhere. This can be removed when those no longer exist.
|
|
|
+// See https://github.com/WordPress/gutenberg/issues/29167
|
|
|
@mixin button-main-styles {
|
|
|
@include button-padding-styles;
|
|
|
@include button-typography-styles;
|
|
@@ -47,6 +48,7 @@
|
|
|
|
|
|
// NOTE: These remain for the hover styling of blocks. This can be removed when the button block has configurable hover states.
|
|
|
// The mechanism below ONLY CHANGES CSS VARIABLES that are already applied to properties (above)
|
|
|
+// See https://github.com/WordPress/gutenberg/issues/4543
|
|
|
@mixin button-hover-styles {
|
|
|
//The following changes should ONLY be changed if the user has NOT set a custom color
|
|
|
&:not(.has-background):not(.has-text-color) {
|
|
@@ -76,4 +78,4 @@
|
|
|
padding-left: var(--wp--custom--button--spacing--padding--left);
|
|
|
padding-right: var(--wp--custom--button--spacing--padding--right);
|
|
|
}
|
|
|
-}
|
|
|
+}
|