If a block menu is used in the navigation bar, bullets have been removed and links are inline, but the block titles and margin still exists. It would be useful if these were removed.


KrisBulman’s picture

Status: Active » Needs review
469 bytes

this patch applies the above changes in STARTERKIT only

KrisBulman’s picture

Assigned: KrisBulman » Unassigned
KrisBulman’s picture

Just noticed I should have done this in the sass navigation file.. When attempting to approach it, I sadly failed on getting the ruby gem sass installed on my Debian vm. :(

barraponto’s picture

Kris, you should try using rvm https://rvm.beginrescueend.com/ it helps a lot. Takes some effort to get used, but you can try all gem combinations you can think of (I use it to move from sass/compass betas and stables, and testing out my drupal compass plugin).

barraponto’s picture

Issue tags: +accessibility, +DAX

btw, shouldn't we look for a proper accessibility solution for this? display: none hides things from screen readers as well.

KrisBulman’s picture

If the idea is to give the title access to screen readers, then it would work to replace display:none with this

    clip: rect(1px 1px 1px 1px); /* IE6 & 7 */
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;

unless there is a better way by adding an element-hidden class to menus that appear in the navigation region.. might be overkill though.

mgifford’s picture

Actually, better to just use the pre-defined class element-invisible on any item you don't want to appear on the browser, but do want to be visible to assistive technology. See:


JohnAlbin’s picture

Component: CSS/HTML markup » layout.css

Zen now has a element-invisible() mixin in the _custom.scss partial.

JohnAlbin’s picture

Status: Needs review » Needs work
JohnAlbin’s picture

Component: layout.css » CSS/SASS/HTML markup

This makes sense.

JohnAlbin’s picture

Title: remove block-title in navigation & adjust margins to same as main-menu » In navigation region, make menu block styling the same as theme's menu links

Looks like stripping the .content div from the block.tpl broke this functionality in the interim.

JohnAlbin’s picture

Title: In navigation region, make menu block styling the same as theme's menu links » Make menu block styling the same as theme's menu links in navigation region
Status: Needs work » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.