Skip to content

Commit 6d8f2c7

Browse files
committed
fix(b-toast): fixes the direction of the toaster close icon in rtl version
1 parent c645a33 commit 6d8f2c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/toast/_toast.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
opacity: 0;
3737
}
3838

39+
// fix close icon in rtl direction
40+
.toast-header {
41+
.close {
42+
[dir="rtl"] & {
43+
margin-left: unset !important; // override bootstrap's ml-auto class
44+
margin-right: auto;
45+
}
46+
}
47+
}
48+
3949
.toast-body {
4050
display: block; // Needed when we use a link as the body element
4151
}

0 commit comments

Comments
 (0)