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

Toast z-index css variable not used #37136

Closed
3 tasks done
manuelhenke opened this issue Sep 13, 2022 · 2 comments · Fixed by #37118
Closed
3 tasks done

Toast z-index css variable not used #37136

manuelhenke opened this issue Sep 13, 2022 · 2 comments · Fixed by #37118

Comments

@manuelhenke
Copy link

Prerequisites

Describe the issue

The variable for the z-index of a toast gets defined here in .toast:

--#{$prefix}toast-zindex: #{$zindex-toast};

And it gets later used in .toast-container:

z-index: var(--#{$prefix}toast-zindex);

However, the documentation says that a .toast-container wraps the .toast element. Due to that the variable defined in .toast will never be available inside .toast-container:

Reduced test cases

https://codepen.io/manuelhenke/pen/ExLgRvq

What operating system(s) are you seeing the problem on?

macOS, iOS

What browser(s) are you seeing the problem on?

Chrome, Safari, Firefox

What version of Bootstrap are you using?

v5.2.1

@manuelhenke manuelhenke changed the title Toast z-index Toast z-index css variable not used Sep 13, 2022
@julien-deramond

This comment was marked as resolved.

@flavio-b

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants