@extend still good practice? #39985
-
If I'm using Bootstrap 5.3 is the code below still good practice? Reason I ask is b/c a lot of the discussion I see surrounding
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @kmarler18 |
Beta Was this translation helpful? Give feedback.
Hello @kmarler18
I think there's a little confusion here.
On one hand, there's
@extend
which comes from Sass: https://sass-lang.com/documentation/at-rules/extend/. You can still use it.On the other hand, in our doc, on the left-hand side, "Extend" (with the tools icons) is just a section that gathers two pages: "Approach" and "Icons". This is where we document the way to extend Bootstrap; it's not related to the
@extend
.