Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#9 | drupal-tour-button-2208731-9.patch | 6.88 KB | LewisNyman |
#2 | Screenshot 2014-03-04 08.00.33.png | 42.62 KB | larowlan |
#2 | Screenshot 2014-03-04 07.58.42.png | 10.97 KB | larowlan |
#2 | Screenshot 2014-03-04 07.54.02.png | 10.05 KB | larowlan |
Content__Content____Site-Install.jpg | 119.56 KB | LewisNyman |
Comments
Comment #1
larowlanAdding tag
Comment #2
larowlanEvery 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
Comment #3
larowlanthere is some css and js in tour that refer to a button element, so will need to update those too
Comment #4
paulh CreditAttribution: paulh commented- 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.
Comment #5
nod_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.Comment #6
LewisNymanYeah 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.
Comment #7
LewisNymanOk, 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...Comment #8
larowlanNo patch?
Comment #9
LewisNymanWhoops
Comment #10
Coornail CreditAttribution: Coornail commentedPatch looks good, it does fix the padding problem.
Comment #12
LewisNyman9: drupal-tour-button-2208731-9.patch queued for re-testing.
Comment #13
LewisNymanBack to RTBC
Comment #15
webchickCommitted and pushed to 8.x. Thanks!
Comment #17
mgifford