Hacker News new | ask | show | jobs
by notjustanymike 4775 days ago
"Updated class prefix for all icons: .glyphicon- instead of .icon-. We changed this for a more unique class, but also for consistency with the newly required base class as noted above."

Seriously, how is that in any way helpful?

3 comments

So that people who ship alternative icon packs (e.g. font-awesome) no longer have to hack around[1] the bootstrap style?

[1]: https://github.com/FortAwesome/Font-Awesome/blob/master/buil...

When I implemented Bootstrap 2 with an existing site I found that the icon sprite was getting loaded on random pages. Turned out there was existing CSS that used "icon-" as part of the classname which was getting picked up by the Bootstrap CSS.
Yeah, this is going to be a bit of a pain. Plus it looks like you also have to add .glyphicon? So instead of .icon-plus, you now have .glyphicon .glyphicon-plus. :(