Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Bartik theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Mar 2015 at 19:03 UTC
Updated:
6 May 2015 at 19:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
emma.mariaTaggin'
Comment #2
emma.mariaComment #3
lewisnymanNice, this sounds like something that is easy to achieve without a lot of design bikeshedding. We just need a color or some kind of indicator that is inline with the current design. I think someone should patch it and then we review the design change.
Tagging with novice as it is should be simple styling
Comment #4
Bojan Zivkov commentedI changed the background opacity for items in the active trail. It is the subtle difference and visible enough to do the job.
Comment #5
Bojan Zivkov commentedComment #6
Bojan Zivkov commentedComment #7
emma.mariaHey @Bojan Živkov thanks for the patch.
Due to recent commits in core the patch does not apply anymore so I rerolled.
From looking in the CSS files I noticed we have this code...
.region-primary-menu .menu-item .menu-item--active-trail ashould be targeting the .menu-item--active-trail list item but the selector is currently incorrect.Can we please write a new patch that amends the code above and targets the active trail correctly.
Comment #8
Cinnead commentedComment #9
Cinnead commentedRewrote the patch, the previous one didn't work anymore because of changes to the primary-menu.css file.
Comment #10
Cinnead commentedComment #11
emma.mariaFor the style of the active trail we need to use:
background: #ffffff;This is existing code in Bartik for active trail menu items which you can find in colors.css.
It is not working currently because the selector is slightly incorrect so we just need a small change to existing code for this issue.
Comment #12
haasontwerp commentedCorrected css selector.
Comment #13
haasontwerp commentedComment #14
haasontwerp commentedAdded before and after screenshots.
Comment #15
emma.mariaThanks @haasontwerp for the patch.
The visual changes are perfect!

However I need one improvement for the code.
For the active trail selector...
.region-primary-menu .menu-item.menu-item--active-trail aWe need to remove the .menu-item part of it and just have....
.region-primary-menu .menu-item--active-trail aThis is because .menu-item--active-trail is a variant class of .menu-item so it does not need to be declared twice.
Comment #16
Cinnead commentedRemoved the menu-item selector because it doesn't needs to be declared twice.
Comment #17
Cinnead commentedComment #18
Cinnead commentedComment #19
emma.mariaComment #20
emma.mariaThe CSS selector is now correct and the changes in #16 do not affect anything visually from the patch in #12.
Setting this issue to RTBC. Thanks all!
Comment #21
emma.mariaAdded beta evaluation
Comment #24
emma.maria