Skip to content

Commit d123007

Browse files
Fixes layout where title and close button overlap in RTL mode (#1643)
* Fixes layout where title and close button overlap in RTL mode * Improve RTL support in the modal component --------- Co-authored-by: Sandeep17262shra <[email protected]>
1 parent 251fcf4 commit d123007

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/smooth-points-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"flowbite-react": patch
3+
---
4+
5+
Improve RTL support in the modal component

packages/ui/src/components/Modal/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export const modalTheme = createTheme<ModalTheme>({
4545
popup: "border-b-0 p-2",
4646
title: "text-xl font-medium text-gray-900 dark:text-white",
4747
close: {
48-
base: "ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",
48+
base: "ms-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",
4949
icon: "h-5 w-5",
5050
},
5151
},
5252
footer: {
53-
base: "flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",
53+
base: "flex items-center gap-2 rounded-b border-gray-200 p-6 dark:border-gray-600",
5454
popup: "border-t",
5555
},
5656
});

0 commit comments

Comments
 (0)