Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Weird Firefox rtl behavior for (v2) #285

Merged
merged 1 commit into from
Oct 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions src/scss/_toastContainer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
.#{$vt-namespace}__toast {
margin-right: auto;
}
.#{$vt-namespace}__toast--rtl {
margin-right: unset;
margin-left: auto;
// Firefox does not apply rtl rules to containers and margins, it appears.
// See https://github.com/Maronato/vue-toastification/issues/179
@supports not (-moz-appearance:none) {
.#{$vt-namespace}__toast--rtl {
margin-right: unset;
margin-left: auto;
}
}
}

Expand All @@ -44,9 +48,13 @@
.#{$vt-namespace}__toast {
margin-left: auto;
}
.#{$vt-namespace}__toast--rtl {
margin-left: unset;
margin-right: auto;
// Firefox does not apply rtl rules to containers and margins, it appears.
// See https://github.com/Maronato/vue-toastification/issues/179
@supports not (-moz-appearance:none) {
.#{$vt-namespace}__toast--rtl {
margin-left: unset;
margin-right: auto;
}
}
}

Expand Down