It looks like there is some specific styling on the tour tab in the toolbar that's increasing the height of the toolbar. Ideally there shouldn't be any unique styling, most of the tabs look the same.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larowlan’s picture

Issue tags: +Tour

Adding tag

larowlan’s picture

Every other toolbar item is an a tag, except tour which was a button.
Changing it to an a seems to fix the padding issue.
Tour still works.

before



after

larowlan’s picture

there is some css and js in tour that refer to a button element, so will need to update those too

paulh’s picture

- Reviewed code: no obvious issues.
- Applied patch, tested Tour functionality on view: Content and view: Files. Padding issue resolved without impact on Tour functionality.
- Not sure about the ref in comment #3 to css and js and whether that's pertinent to this patch.

nod_’s picture

Status: Needs review » Needs work

tour button is a button, not a link. Let's tweak the CSS to fix this. There is no href, <a> is not the right tag.

LewisNyman’s picture

Issue tags: +accesibility

Yeah we shouldn't rely on a specific element for styling, which is part of out CSS standards. Let's make sure the CSS is generic enough to cover any element we choose, for accessibility reasons.

LewisNyman’s picture

Status: Needs work » Needs review

Ok, I tried adding a common class to replace the element selectors. It got kind of hairy because modules seem to pass through the attributes in different structures? I've never heard of #options outside of the form api...

larowlan’s picture

No patch?

LewisNyman’s picture

FileSize
6.88 KB

Whoops

Coornail’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good, it does fix the padding problem.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: drupal-tour-button-2208731-9.patch, failed testing.

LewisNyman’s picture

Status: Needs work » Needs review
LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC

  • Commit 2f13993 on 8.x by webchick:
    Issue #2208731 by LewisNyman, larowlan: Tour tab increases the height of...
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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

mgifford’s picture

Issue tags: -accesibility +Accessibility