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

Add some calc() for manipulating new CSS variable version of border-width #35996

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

mdo
Copy link
Member

@mdo mdo commented Mar 10, 2022

We rely on some lazy Sass math like -$border-width, so in these early steps of migrating to CSS variables, we're bound to find some issues. In this case, we're generating bad CSS because of that lazy math (-var(--bs-border-width)). The fix is using calc() to multiply by -1. I thought about reverting the change for these instances, but it'd just be ducking the inevitable, so decided to push it here for now.

Fixes #35986.

@mdo mdo requested a review from a team as a code owner March 10, 2022 20:51
Copy link
Member

@ffoodd ffoodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really think we should allow calc() fonction in our stylelint settings, we keep disabling it.

Kinda overwhelmed for now but I'll try to find a way forward.

@mdo mdo force-pushed the css-var-border-width-fixes branch from 491dd7d to 7dcd556 Compare March 11, 2022 17:01
@mdo mdo merged commit 63145c8 into main Mar 11, 2022
@mdo mdo deleted the css-var-border-width-fixes branch March 11, 2022 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Active Nav Tabs are not displayed correctly in the current main branch
2 participants