Skip to content

Compatibility Issue with Bootstrap 5.3.2 and Tabler 1.0.0-beta20 #39622

Answered by julien-deramond
raj-oeeai asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @raj-oeeai

IDK the source code of Tabler. I can see in your logs that there's an issue while calling the divide() function in node_modules/bootstrap/scss/vendor/_rfs.scss. In Bootstrap, that means that the 2 parameters have incompatible units.

For example, in Bootstrap, if you do $test: divide(.75em, 100%); you'd have the same error.

In Tabler (https://github.com/tabler/tabler/blob/682eaa88a8c4df1b3a503d8f4090a425a418d6aa/src/scss/ui/_badges.scss#L8), there is: min-width: ($badge-padding-y * 2 ) + (divide($badge-font-size, 100%) * 1em);

So I'd say that probably $badge-font-size is set to .75em within the library or if you override it in your project. And that causes the issue.

Again I…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raj-oeeai
Comment options

Answer selected by raj-oeeai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #39620 on February 01, 2024 15:04.