Skip to content

Commit f436174

Browse files
committed
refactor: Move direction property to css variable (fixes #943)
1 parent f7e7f75 commit f436174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/VueDatePicker/style/main.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
--dp-time-font-size: 2rem;
4444
--dp-action-button-height: 22px;
4545
--dp-action-row-padding: 8px;
46+
--dp-direction: ltr;
4647
}
4748

4849
.dp__theme_dark {
@@ -127,7 +128,7 @@
127128
}
128129

129130
.dp__main * {
130-
direction: ltr !important;
131+
direction: var(--dp-direction, ltr);
131132
}
132133

133134
.dp__pointer {

0 commit comments

Comments
 (0)