Problem/Motivation
The iconography.css added to the Bootstrap UI Kit page is overriding the component styles as it's not restricted to the iconography section only.
Steps to reproduce
- Install the module
- Add a component that has
.icon > svgHTML structure on it
Proposed resolution
Restrict the iconography.css to the Iconography section only
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot from 2026-07-23 10-37-23.png | 525.23 KB | hfernandes |
| Screenshot from 2026-07-23 10-12-36.png | 529.89 KB | hfernandes |
Issue fork bootstrap_ui_kit-3612786
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
hfernandes commentedMR opened.
Comment #4
hfernandes commentedResults after applying the patch:

Comment #5
nitinkumar_7 commentedTested MR !27 against the reported bug.
Before : confirmed via DevTools that .bootstrap-ui-kit .icon svg (and -sm/-md/-lg variants) from iconography.css matched .icon > svg anywhere on the page, leaking into unrelated components outside the Iconography section.
After patch : Rescanned the same Big Button component in DevTools. The iconography.css icon-size rules no longer appear in the cascade for this element - only expected global styles (_reboot.scss vertical-align, box-sizing, and the SVG's own fill: currentColor) are applied. Icons render correctly in both the Iconography section and the unrelated component
One follow-up worth a quick look before RTBC: this test case happened to use an SVG with its own viewBox sizing, so it looked fine even fully unstyled. Might be worth a second pass on a component whose icon relies on iconography.css dimensions (rather than intrinsic SVG sizing) to make sure nothing outside the Iconography section was depending on those rules for correct sizing.
other than it looks clean
Comment #7
aaronchristian commentedAwesome thanks everyone, i tested on my side and all looks good with that use case you mentioned @nitinkumar_7
Comment #8
aaronchristian commentedComment #9
aaronchristian commentedComment #11
aaronchristian commented