Skip to content

Commit

Permalink
refactor: Move direction property to css variable (fixes #943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed Jul 18, 2024
1 parent f7e7f75 commit f436174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VueDatePicker/style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
--dp-time-font-size: 2rem;
--dp-action-button-height: 22px;
--dp-action-row-padding: 8px;
--dp-direction: ltr;
}

.dp__theme_dark {
Expand Down Expand Up @@ -127,7 +128,7 @@
}

.dp__main * {
direction: ltr !important;
direction: var(--dp-direction, ltr);
}

.dp__pointer {
Expand Down

0 comments on commit f436174

Please sign in to comment.