Fix attributes modal incorrect notice (#40976)
* Remove modal copy * Fix styles * Add changelog * Fix build error
This commit is contained in:
parent
335284b31b
commit
bae33f34de
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: fix
|
||||
|
||||
Fix attributes modal incorrect notice #40976
|
|
@ -99,10 +99,6 @@ export const AttributeControl: React.FC< AttributeControlProps > = ( {
|
|||
`You can change the attribute's name in <link>Attributes</link>.`,
|
||||
'woocommerce'
|
||||
),
|
||||
newAttributeModalNotice: __(
|
||||
'By default, attributes are filterable and visible on the product page. You can change these settings for each attribute separately later.',
|
||||
'woocommerce'
|
||||
),
|
||||
attributeRemoveConfirmationMessage: __(
|
||||
'Remove this attribute?',
|
||||
'woocommerce'
|
||||
|
@ -293,7 +289,6 @@ export const AttributeControl: React.FC< AttributeControlProps > = ( {
|
|||
<NewAttributeModal
|
||||
title={ uiStrings.newAttributeModalTitle }
|
||||
description={ uiStrings.newAttributeModalDescription }
|
||||
notice={ uiStrings.newAttributeModalNotice }
|
||||
onCancel={ () => {
|
||||
closeNewModal();
|
||||
onNewModalCancel();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.woocommerce-new-attribute-modal {
|
||||
min-width: 50%;
|
||||
min-width: 75%;
|
||||
.components-notice.is-info {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
|
|
@ -60,10 +60,7 @@ type AttributeForm = {
|
|||
export const NewAttributeModal: React.FC< NewAttributeModalProps > = ( {
|
||||
title = __( 'Add attributes', 'woocommerce' ),
|
||||
description = '',
|
||||
notice = __(
|
||||
'By default, attributes are filterable and visible on the product page. You can change these settings for each attribute separately later.',
|
||||
'woocommerce'
|
||||
),
|
||||
notice,
|
||||
attributeLabel = __( 'Attribute', 'woocommerce' ),
|
||||
valueLabel = __( 'Values', 'woocommerce' ),
|
||||
attributePlaceholder = __( 'Search or create attribute', 'woocommerce' ),
|
||||
|
|
Loading…
Reference in New Issue