Skip to content

Added css variables for breakpoints#36095

Merged
mdo merged 1 commit intotwbs:mainfrom
shaack:main
Oct 3, 2022
Merged

Added css variables for breakpoints#36095
mdo merged 1 commit intotwbs:mainfrom
shaack:main

Conversation

@shaack
Copy link
Copy Markdown
Contributor

@shaack shaack commented Mar 31, 2022

See Issue #36094 "css variables for breakpoints are missing in Bootstrap 5".

The css variables for the breakpoints have been missing. I just added them in scss/_root.scss.

Without them I have no idea how to detect the current breakpoint from JavaScript, like I do in my detection script bootstrap-detect-breakpoint which works with BS 4 but not with BS 5 because of the missing css variables.

Furthermore this should be present according to the documentation: "[...]we include our grid breakpoints as CSS variables[...]".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants