This is a follow up from #2938194: Focus styles should meet accessibility guidelines in Umami theme
===
Underlines are best for indicating the presence of a link at all, in their resting style, especially inside sentences. The footer links would be better with an underline to distinguish them from nearby text, so they'll need an outline focus style.
===
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | 02-after-patch-applied.png | 130.18 KB | markconroy |
| #26 | 01-current.png | 129.17 KB | markconroy |
| #25 | interdiff.txt | 405 bytes | Vidushi Mehta |
| #25 | 2942489-25.patch | 1.61 KB | Vidushi Mehta |
| #22 | 2942489-22.patch | 2.21 KB | mukeysh |
Comments
Comment #2
mgiffordSome reasons why this is important here http://www.webaxe.org/keep-the-underline-text-links/
Comment #3
markconroy commentedComment #4
markconroy commentedComment #5
ankitjain28may commentedAs i can see, We have
border-bottom: 1px dotted;style by default to all the links in the footer. Let me know your views over this - To underline the links in the footer section to make it more accessible.Comment #6
markconroy commentedComment #7
cytherion commentedWorking on this issue with my team at the mentored core sprint - Drupalcon Nashville 2018
Comment #8
matias commentedThe links on the footer have no underline, but the rest of the links on the site are not underlined either.
What is your view on this. Should we underline all the links to keep it consistency or only the ones on the footer?
Comment #9
TaoStyle commentedWorking on this issue with my team at the mentored core sprint - Drupalcon Nashville 2018
Comment #10
seeallie commentedGreat to work with others on this! It's great to have an out-of-the-box profile for D8.6.
Comment #11
matias commentedWorking with susannecoates, TaoStyle and seeallie at DrupalCon Nashville sprint.
As you can see on the attached screenshots there is no underline on the footer, but there is an underline on hover.
Should we update the links style to underline all the links or only the ones on the footer?
Any accessibility experts could advise on how to procede.
Comment #12
cytherion commentedWCAG 2.0 requires links be distinguished by a method other than colour and have a minimum contrast ratio of 3:1 (4.5:1 in WGAC 2.1) from surrounding text. Underlining maximises link accessibility without altering theme colours. Patching the theme to have footer links always underlined.
Comment #13
cytherion commented@TaoStyle @seeallie @matias Created patch for issue - added underline to links in the footer region css and removed it from promo and menu footer blocks css.
Comment #14
cytherion commentedComment #15
TaoStyle commentedTested the patch core-links-in-footer-2942489-13-8.6.x.patch
Original State:

With patch:

Comment #16
mgiffordI like this. The
text-decoration: none;is generally a bad idea.Comment #17
borisson_Instead of commenting this, we should probably just remove this line?
Comment #18
HAL 9000 commentedThe core-links-in-footer-2942489-13-8.6.x.patch doesn't work anymore because of the block-type-footer-promo-block and 'footer-promo-content a' classes were given a 'display: block' properties in the footer-promo.css.
Comment #19
dinesh18 commentedI tried applying the patch mentioned in #13, but the patch is not getting applied cleanly. Throws error as mentioned in #18
Comment #20
idebr commentedComment #21
markconroy commentedHi Folks,
Thanks for working on this issue.
I'm going to mark it as 'Needs work' again. At the moment with the patch from #20 we have underlines in the links in the footer, but there is no change when we hover over the links. We'll need to have the underline removed on hover, so we fulfill the criterion from #12 "WCAG 2.0 requires links be distinguished by a method other than colour and have a minimum contrast ratio of 3:1 (4.5:1 in WGAC 2.1) from surrounding text."
Also, there is no change of colour for the links on hover, maybe that's acceptable if we have the underline being removed on hover. @mgifford can you verify as core a11y maintainer?
Comment #22
mukeysh commented@markconroy as you suggested i have removed underline from hover. Please review.
Comment #23
mukeysh commentedComment #24
markconroy commentedThese changes mean we are now using the default underline settings for links from base.css
Actually, we can probably also remove the lines in that file that set the underline, since it should be there by default in browsers.
This section seems like it is not needed, given the changes above it. Given the changes in the menu-footer.css file, it looks like we are now using the default styling for links - underline as default, no underline on hover.
Can we remove these lines from the patch, and I can test again. Thanks.
Comment #25
Vidushi Mehta commentedRemoved the lines as mentioned by #24.
Comment #26
markconroy commentedThanks @Vidushi Mehta and others for working on this. I'm marking it as RTBC now.
Current links in footer:

After patch applied:

Comment #28
markconroy commentedAccording to the test results, this passed. https://www.drupal.org/pift-ci-job/968994
Can we have it committed please?
Comment #31
lauriiiLooks good! ✨Thanks everyone!
Committed 03ab0f8 and pushed to 8.6.x. Also cherry-picked a href="http://cgit.drupalcode.org/drupal/commit/?id=6619dd6">6619dd6 and pushed to 8.5.x 🚀Thanks!