Remove navbar-expand- rule

Created on 16 February 2024, 10 months ago
Updated 26 April 2024, 8 months ago

Problem/Motivation

There can be a case when you want to remove `@import "bootstrap/scss/navbar";` from your `navigation.scss` and do custom stuff. Trying to do this will result in nex t error when compiling CSS:

 Message:
    ../../contrib/bs_base/themes/bs_bootstrap/sass/components/partials/_navigation.scss
Error: ".navbar" failed to @extend ".navbar-expand-lg".
       The selector ".navbar-expand-lg" was not found.
       Use "@extend .navbar-expand-lg !optional" if the extend should be able to fail.
        on line 189 of ../../contrib/bs_base/themes/bs_bootstrap/../bs_bootstrap/sass/components/partials/_navigation.scss

Meaning we have a hard recuirement on navbar-expand- rule from Bootstrap. Further more it seems we do not use this rule at all in bs_bootstrap templates. Probably I added this long time ago, removed it from templates and forgot to remove it from CSS.

Let's fix this.

📌 Task
Status

Fixed

Version

1.0

Component

BS Bootstrap

Created by

🇷🇸Serbia pivica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024