Fix Gutenberg modal conflict around CSS specificity (#50387)
* Increase specificity for modal frame styling * Add changelog * Address other modals within product form
This commit is contained in:
parent
f147bd9764
commit
7fd864d234
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: update
|
||||
|
||||
Increase specificity of modal styling to avoid Gutenberg styling conflicts.
|
|
@ -1,5 +1,5 @@
|
|||
.woocommerce-add-products-modal,
|
||||
.woocommerce-reorder-products-modal {
|
||||
.components-modal__frame.woocommerce-add-products-modal,
|
||||
.components-modal__frame.woocommerce-reorder-products-modal {
|
||||
@include breakpoint(">600px") {
|
||||
width: calc(100% - 32px);
|
||||
}
|
||||
|
@ -11,7 +11,9 @@
|
|||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.woocommerce-add-products-modal,
|
||||
.woocommerce-reorder-products-modal {
|
||||
&__input-suffix {
|
||||
margin-right: $grid-unit-15;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.woocommerce-new-attribute-modal {
|
||||
.components-modal__frame.woocommerce-new-attribute-modal {
|
||||
min-width: 75%;
|
||||
}
|
||||
.woocommerce-new-attribute-modal {
|
||||
.components-notice.is-info {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
.woocommerce-product-custom-fields__create-modal {
|
||||
.components-modal__frame.woocommerce-product-custom-fields__create-modal {
|
||||
min-width: 75%;
|
||||
}
|
||||
|
||||
.woocommerce-product-custom-fields__create-modal {
|
||||
[role="table"] {
|
||||
width: 100%;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
$modal-editor-height: 60px;
|
||||
|
||||
.woocommerce-modal-editor {
|
||||
.components-modal__frame.woocommerce-modal-editor {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: calc( 100% - 40px );
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
.woocommerce-create-new-tag-modal {
|
||||
min-width: 650px;
|
||||
overflow: visible;
|
||||
&__wrapper {
|
||||
min-width: 590px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
&__buttons {
|
||||
margin-top: $gap-larger;
|
||||
|
|
Loading…
Reference in New Issue