Skip to content

Commit

Permalink
feat: drawer-open now works in RTL mode.
Browse files Browse the repository at this point in the history
fix: #1951
fix: #1974
fix: #2034
fix: #2060
fix: #2094
fix: #2229
  • Loading branch information
saadeghi committed Sep 6, 2023
1 parent 8898929 commit 5162ff3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions src/components/unstyled/drawer.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@apply duration-300 ease-out transition;
transform: translateX(-100%);
[dir="rtl"] & {
transform: translateX(100%);
transform: translateX(-100%);
}
}
}
Expand All @@ -44,13 +44,10 @@
@apply col-start-1;
}
& ~ .drawer-side {
@apply justify-items-end;
& > *:not(.drawer-overlay) {
transform: translateX(100%);
[dir="rtl"] & {
transform: translateX(-100%);
}
}
@apply justify-items-end col-start-2;
}
& ~ .drawer-side > *:not(.drawer-overlay) {
transform: translateX(100%);
}
&:checked ~ .drawer-side > *:not(.drawer-overlay) {
transform: translateX(0%);
Expand Down
2 changes: 1 addition & 1 deletion src/experiments/playground/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ module.exports = {
require("@tailwindcss/typography"),
require("../../"),
// require('daisyui'),
// require('tailwindcss-flip'),
// require("tailwindcss-flip"),
],
}

0 comments on commit 5162ff3

Please sign in to comment.