How to use @include font-size inside mixin #37582
Replies: 1 comment 1 reply
-
It looks like the issue is that you are trying to use the @include directive to include the font-size mixin, but the font-size mixin is not defined. In Bootstrap 5, the font-size mixin is defined in the functions.scss file and is not part of the @mixin syntax. To fix this issue, you can use the font-size function directly in your fontSize mixin, rather than trying to @include it. Here is an updated version of your mixin that uses the font-size function instead:
In this updated version, we have removed the @include directive and are calling the font-size function directly to set the font size of the element. This should fix the issue and allow your mixin to work as expected. |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
I create mixin that give me an font-size and line-height with rtl convert, but i need to add font-size function to make it responsive.
The mixin i created :
the include not working
bootstrap version : 5.1.3
Beta Was this translation helpful? Give feedback.
All reactions