Skip to content

Commit

Permalink
OIS-25: fix modal styling when rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed Sep 27, 2024
1 parent a2765ed commit 1ae26c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/react-components/modals/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,16 @@ $padding-value: 1rem;
height: auto;
top: 50%;
inset-inline-start: 50%;
transform: translate(-50%, -50%);
width: 600px;
margin: 30px auto;

[dir='ltr'] & {
transform: translate(-50%, -50%);
}

[dir='rtl'] & {
transform: translate(50%, -50%);
}
}

.display-block {
Expand Down

0 comments on commit 1ae26c4

Please sign in to comment.