Compatibility Issue with Bootstrap 5.3.2 and Tabler 1.0.0-beta20 #39622
-
I've got an Compatibility Issue in my Ember 4.4 project with Bootstrap 5.3.2 and Tabler 1.0.0-beta20.
Package Versions: Does someone have a solution idea? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @raj-oeeai IDK the source code of Tabler. I can see in your logs that there's an issue while calling the For example, in Bootstrap, if you do In Tabler (https://github.com/tabler/tabler/blob/682eaa88a8c4df1b3a503d8f4090a425a418d6aa/src/scss/ui/_badges.scss#L8), there is: So I'd say that probably Again I'm not familiar with Tabler code so the issue could come from anything else :) Do you know for example if this is a recent modification on their side, or if it worked with a previous version of Bootstrap? |
Beta Was this translation helpful? Give feedback.
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 innode_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…