I have a minor issue when I run the landing page through Chrome's lighthouse auditing testsuite.

The Accessibility score is 95/100

Its fails as the SVG in drupal/core/profiles/demo_umami/themes/umami/images/svg/search.svg

is parsed... here is the error message

attributes on the page are not unique

many items in here have a id="Oval'

It is a quick fix to get 100/100 by deleting the Id's all together.

Comments

martin107 created an issue. See original summary.

martin107’s picture

Assigned: martin107 » Unassigned
Issue tags: +Quick fix
StatusFileSize
new4.03 KB

Here is the patch

martin107’s picture

Issue summary: View changes
markconroy’s picture

Status: Active » Needs work

After applying this patch and running Lighthouse again, we get the same error. It looks like there are also some id="shape"

It might be best to run the SVG through SVGOMG here https://jakearchibald.github.io/svgomg/

MaddieC’s picture

Assigned: Unassigned » MaddieC
MaddieC’s picture

StatusFileSize
new7.1 KB

Removed the "shape" ids.

MaddieC’s picture

Assigned: MaddieC » Unassigned
Status: Needs work » Needs review
markconroy’s picture

Status: Needs review » Reviewed & tested by the community

Yippee! Another patch is now RTBC

  • lauriii committed 061c632 on 8.7.x
    Issue #2994976 by martin107, MaddieC, markconroy: Search icon: Remove...

  • lauriii committed f3fdd3d on 8.6.x
    Issue #2994976 by martin107, MaddieC, markconroy: Search icon: Remove...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Committed 061c632 and pushed to 8.7.x and cherry-picked to 8.6.x. Thanks!

andrewmacpherson’s picture

Issue tags: +Accessibility

Please remember to tag accessibility issues. One day we might make a big chart of all the a11y things we fixed :-)

In practice, duplicate IDs only cause a problem when another element is pointing to them, with a <label for>, or table headers attribute, say. All the same, technically it's WCAG failure F77: Failure of Success Criterion 4.1.1 due to duplicate values of type ID. Good catch!

It is a quick fix to get 100/100 by deleting the Id's all together.

Awesome, I just ran the aXe/Lighthouse checks to confirm it - 100/100 indeed. Well done team!

Status: Fixed » Closed (fixed)

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