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:
parent
ea43d5bc3b
commit
36a387f373
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 = ( {
|
||||
|
|
Loading…
Reference in New Issue