Fix Customer account sidebar link incorrect margin in WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8437)

* Fix Customer account sidebar link incorrect margin in WP 6.2

* Update class name to match the guidelines
This commit is contained in:
Albert Juhé Lluveras 2023-02-16 10:07:44 +01:00 committed by Saad Tarhi
parent ea43d5bc3b
commit 36a387f373
2 changed files with 11 additions and 2 deletions

View File

@ -2,6 +2,11 @@
width: 100%;
}
.account-link {
/* In sidebar without tabs (WP <=6.1) */
.block-editor-block-card + div > .wc-block-editor-customer-account__link {
padding: 0 $gap $gap 52px;
}
/* In tabbed sidebar (ie: WP >=6.2) */
.wc-block-editor-customer-account__link {
padding: $gap;
}

View File

@ -47,7 +47,11 @@ const AccountSettingsLink = () => {
}
);
return <div className="account-link">{ linkText }</div>;
return (
<div className="wc-block-editor-customer-account__link">
{ linkText }
</div>
);
};
export const BlockSettings = ( {