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.
Part of #3083583: [META] Discourage non-inclusive use of the HTML title attribute
Problem/Motivation
The site-name link in the SystemBrandingBlock has a title attribute which is inaccessible to many groups of users, and is of little use.
Proposed resolution
Remove the title attribute from the site-name link in the system branding block template, for all core themes.
Remaining tasks
Patch.
Comment | File | Size | Author |
---|---|---|---|
#19 | Screenshot from 2020-08-20 09-48-58.png | 328.1 KB | ranjith_kumar_k_u |
#14 | title-remove.png | 240.78 KB | sd9121 |
#11 | interdiff_9-10.txt | 994 bytes | Ramya Balasubramanian |
#11 | remove-title-attribute-from-site-name-link-3084441-10.patch | 6.3 KB | Ramya Balasubramanian |
#9 | interdiff_3-9.txt | 884 bytes | Ramya Balasubramanian |
Comments
Comment #2
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedSimple patch for the twig templates.
I haven't checked to see if this affects tests. Let's see what the bots say.
Comment #3
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedComment #6
theMusician CreditAttribution: theMusician as a volunteer and at Western Washington University commentedReroll of andrewmacpherson's patch adding in the block for stable9 as well.
Comment #8
Ramya Balasubramanian CreditAttribution: Ramya Balasubramanian at Srijan | A Material+ Company for Drupal India Association commentedWorking on it. Will try to fix this test case failure
Comment #9
Ramya Balasubramanian CreditAttribution: Ramya Balasubramanian at Srijan | A Material+ Company for Drupal India Association commentedHi,
Updated the patch. Please have a look.
Comment #11
Ramya Balasubramanian CreditAttribution: Ramya Balasubramanian at Srijan | A Material+ Company for Drupal India Association commentedUpdating the code in Claro and seven theme as per the previous test case Failure. I hope this will fix this test case failure.
Comment #13
sd9121 CreditAttribution: sd9121 as a volunteer and at QED42 commentedComment #14
sd9121 CreditAttribution: sd9121 as a volunteer and at QED42 commented@Ramya Balasubramanian,
I have reviewed your patch and it looks good to me.
Screenshot for the reference
Thanks!
Comment #15
hansa11 CreditAttribution: hansa11 as a volunteer and at QED42 commentedRTBC +1
Comment #16
alexpottI think we should have a change record for the removal of title attributes. This change looks good but we should inform users. This is good for two reasons:
Comment #17
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedChange record here: Title attribute removed from site-name link in SystemBrandingBlock
I said it impacts themers and distro developers.
Comment #18
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedComment #19
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedI have reviewed the patch "remove-title-attribute-from-site-name-link-3084441-10.patch" in drupal 9.1 dev version, the patch applied successfully.It removes the title attribute from the site-name link in the system branding block template.
Comment #20
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedComment #22
lauriiiCommitted 73f1151 and pushed to 9.1.x. Thanks!