I've been testing out the navbar on a custom theme and it was working out well. I then added the FontAwesome css to my theme and noticed that the navbar menu started breaking visually.
What's happening is the tag with the class of .icon is conflicting with the styles of FontAwesome.
ex: <a href="/admin/config" id=navbar-link-admin-config" class="icon icon-configuration">Configuration</a>
Both the .icon and .icon- have a high probability of conflicting.
I realize that this may not be a bug with this module per-say, but I wanted to make sure the issue is raised as font awesome and bootstrap are becoming more popular with drupal themes.
Comments
Comment #1
caschbre commentedThis may be a duplicate of #1757466: Prefix all navbar classes to prevent theme clashes.
Can someone confirm that?
Comment #2
jessebeach commentedNoted, thank you.
Comment #3
jessebeach commentedDuplicate of #1757466: Prefix all navbar classes to prevent theme clashes.
Comment #4
shadcn commentedHi
I'd like to reopen this issue since the patch in #1757466: Prefix all navbar classes to prevent theme clashes fixes the conflict with the generic 'navbar' class and not 'icon' classes. I'm attaching a patch to use a 'navbar-icon' class instead.
Thanks ^^
Comment #5
shadcn commentedComment #6
hass commentedDuplicate of #1938044: Prefix all toolbar classes to prevent theme clashes!!!
Comment #7
Kristina Katalinic commentedHi, how do I apply this patch from Mac terminal please?
Comment #8
shadcn commented@Kristina See https://drupal.org/patch/apply
Comment #9
hass commentedComment #10
dsnopekThis patch here should also fix this problem: #1757466: Prefix all navbar classes to prevent theme clashes - it's a back port of the Drupal 8 Toolbar patch that @hass mentions in comment #6.