Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Make mini cart icon RTL on RTL sites in editor #9707

Merged
merged 2 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions assets/js/blocks/mini-cart/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
.wc-block-editor-mini-cart__drawer-link {
margin-bottom: 24px;
}

.wc-block-editor-mini-cart-icon {
roykho marked this conversation as resolved.
Show resolved Hide resolved
html[dir="rtl"] & {
transform: scaleX(-1);
}
}
2 changes: 1 addition & 1 deletion assets/js/blocks/mini-cart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const settings: BlockConfiguration = {
src: (
<Icon
icon={ miniCartAlt }
className="wc-block-editor-components-block-icon"
className="wc-block-editor-components-block-icon wc-block-editor-mini-cart-icon"
/>
),
},
Expand Down