Skip to content

Commit 8cc99bf

Browse files
committed
refactor(maz-ui): accessibilty - support of rtl direction
1 parent e519aad commit 8cc99bf

File tree

15 files changed

+22
-22
lines changed

15 files changed

+22
-22
lines changed

packages/lib/src/components/MazCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function toggleCollapse() {
177177
<MazBtn
178178
v-if="collapsible"
179179
color="transparent"
180-
class="maz-ml-2 maz-text-sm"
180+
class="maz-ms-2 maz-text-sm"
181181
size="xs"
182182
@click.stop="toggleCollapse"
183183
>
@@ -349,7 +349,7 @@ function toggleCollapse() {
349349
@apply maz-absolute maz-left-0 maz-top-0 maz-z-2;
350350
351351
& > *:not(:last-child) {
352-
@apply maz-mr-2;
352+
@apply maz-me-2;
353353
}
354354
}
355355
}

packages/lib/src/components/MazCarousel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function setScrollState(event: Event) {
151151
152152
&__items {
153153
@apply maz-z-1 maz-flex maz-flex-1 maz-items-center maz-justify-start
154-
maz-space-x-5 maz-overflow-y-hidden maz-py-4 maz-pl-3;
154+
maz-space-x-5 maz-overflow-y-hidden maz-py-4 maz-ps-3;
155155
156156
scroll-behavior: smooth;
157157

packages/lib/src/components/MazChecklist.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function updateQuery(value?: string) {
272272
}
273273
274274
.m-checklist-item {
275-
@apply maz-flex maz-w-full maz-cursor-pointer maz-items-center maz-gap-4 maz-rounded maz-px-3 maz-py-2 maz-text-left hover:maz-bg-surface-600;
275+
@apply maz-flex maz-w-full maz-cursor-pointer maz-items-center maz-gap-4 maz-rounded maz-px-3 maz-py-2 maz-text-start hover:maz-bg-surface-600;
276276
}
277277
278278
.item-label {

packages/lib/src/components/MazDatePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ watch(
791791
}
792792
793793
& .m-date-picker__button {
794-
@apply maz-flex maz-h-full maz-cursor-not-allowed maz-bg-transparent maz-pr-1 maz-flex-center;
794+
@apply maz-flex maz-h-full maz-cursor-not-allowed maz-bg-transparent maz-pe-1 maz-flex-center;
795795
796796
&__chevron {
797797
@apply maz-text-foreground maz-transition-transform maz-duration-200;

packages/lib/src/components/MazDatePicker/MazPickerCalendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const calendarDate = computed({
127127
width: 34rem;
128128
129129
& .maz-picker-calendar__months > :first-child {
130-
@apply maz-border-r maz-border-divider;
130+
@apply maz-border-e maz-border-divider;
131131
}
132132
}
133133
}

packages/lib/src/components/MazDatePicker/MazPickerShortcuts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ watch(
6565

6666
<style lang="postcss" scoped>
6767
.maz-picker-shortcuts {
68-
@apply maz-flex maz-flex-col maz-items-start maz-gap-1 maz-overflow-y-auto maz-border-r maz-border-divider maz-p-2;
68+
@apply maz-flex maz-flex-col maz-items-start maz-gap-1 maz-overflow-y-auto maz-border-e maz-border-divider maz-p-2;
6969
7070
&::-webkit-scrollbar {
7171
display: none;

packages/lib/src/components/MazDatePicker/MazPickerTime.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async function selectTime(identifier: ColumnIdentifier, value: TimeValue) {
331331
}
332332
333333
&.--has-date {
334-
@apply maz-border-l maz-border-divider;
334+
@apply maz-border-s maz-border-divider;
335335
}
336336
337337
&::before {

packages/lib/src/components/MazDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ if (scrollable) {
180180
}
181181
182182
&-header {
183-
@apply maz-flex maz-items-baseline maz-justify-end maz-pl-6 maz-pr-2 maz-pt-2 maz-pb-4;
183+
@apply maz-flex maz-items-baseline maz-justify-end maz-ps-6 maz-pe-2 maz-pt-2 maz-pb-4;
184184
185185
&.--has-title {
186186
@apply maz-justify-between;

packages/lib/src/components/MazDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const hasTitle = computed(() => {
121121
@apply maz-overflow-y-auto maz-bg-surface maz-pointer-events-auto maz-flex maz-flex-col;
122122
123123
> .m-drawer-header {
124-
@apply maz-z-1 maz-flex maz-h-16 maz-shrink-0 maz-items-center maz-border-b maz-border-divider maz-bg-surface maz-bg-clip-padding maz-pl-4 maz-pr-2 maz-py-3;
124+
@apply maz-z-1 maz-flex maz-h-16 maz-shrink-0 maz-items-center maz-border-b maz-border-divider maz-bg-surface maz-bg-clip-padding maz-ps-4 maz-pe-2 maz-py-3;
125125
126126
.m-drawer-header__title {
127127
@apply maz-m-0 maz-text-xl maz-font-semibold;

packages/lib/src/components/MazGallery.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function shouldHaveRemainingLayer(index: number): boolean {
238238
}
239239
240240
&__item {
241-
@apply maz-absolute maz-top-0 maz-m-0 maz-h-1/2 maz-w-full maz-overflow-hidden maz-border-l-2 maz-p-0;
241+
@apply maz-absolute maz-top-0 maz-m-0 maz-h-1/2 maz-w-full maz-overflow-hidden maz-border-s-2 maz-p-0;
242242
243243
border-color: var(--gallery-separator-color);
244244

0 commit comments

Comments
 (0)