Bootstrap: @include box-shadow($dropdown-box-shadow); Not working

Created on 8 Jan 2019  路  2Comments  路  Source: twbs/bootstrap

Hey community,

just wanted to point out, that the

@include box-shadow($dropdown-box-shadow);

is still in dropdowns, on line 33, and is obviously not working anymore (https://github.com/twbs/bootstrap/issues/12396). Which creates a question, should we have the variable $dropdown-box-shadow still there if by default dropdown menu doesn't have shadow?

Path to file:
https://github.com/twbs/bootstrap/blob/v4-dev/scss/_dropdown.scss

Most helpful comment

This issue was open and closed in 2014 and no longer seems relevant.

You need to toggle $enable-shadows variable: https://github.com/twbs/bootstrap/blob/dc436427e9dcd74dded4cb79a0eb8ba16a1eb5d8/scss/_variables.scss#L111

See https://getbootstrap.com/docs/4.2/getting-started/theming/#sass-options

(assuming this is about bs4)

All 2 comments

This issue was open and closed in 2014 and no longer seems relevant.

You need to toggle $enable-shadows variable: https://github.com/twbs/bootstrap/blob/dc436427e9dcd74dded4cb79a0eb8ba16a1eb5d8/scss/_variables.scss#L111

See https://getbootstrap.com/docs/4.2/getting-started/theming/#sass-options

(assuming this is about bs4)

Oh, my bad ( facepalm ). Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiendq picture tiendq  路  3Comments

knownasilya picture knownasilya  路  3Comments

steve-32a picture steve-32a  路  3Comments

iklementiev picture iklementiev  路  3Comments

kamov picture kamov  路  3Comments