Jump to content

Improving Accessibility Score - Links and Buttons Do Not Have Accessible/Discernible Name - Help!

Recommended Posts

Hi, 

I'm trying to improve my accessibility scores, and my audit is flagging up the following issues (see images 1 & 2). The "links do not have a discernible name" is point to the images in image 3, attached below. 

My website is johnbristoltherapy.co.uk. 

I have tried to change the name of the images in the content box, but it's not having an impact. And I can't find a way to edit the mobile menu button. 

Any help greatly appreciated!

3.PNG

2.PNG

1.PNG

Link to comment

Hi John,

Is this the Google Lighthouse accessibility tool that you're using? It appears to be flagging the image overlay, not the image itself:

image.png.db0be56eadd6d6eced75be14b336de3a.png

The problem is that the anchor elements are empty. You'd have to retroactively fix this with Javascript by adding in an aria-hidden attribute or adding innerHTML content. Similarly, the mobile navigation menu button can be fixed by adding in an aria-label.

These are the kinds of issues my team and I fix often. If you're interested in having us take a look, feel free to DM me or hit us up at squareada.com.

The above post may be outdated. I’m no longer active in the Squarespace ecosystem, so I won’t see your direct messages. For better resources about web accessibility, I’ve documented some of my thoughts on my forum profile.

Link to comment
  • 2 months later...

Hey John,

I've wrote up a short script that should solve your problem, I've included it in this blog post I wrote explaining how to solve the accessibility button issue: https://jolsonweddings.com/education/squarespace-buttons-accessible-name

In short, you just have to add some extra HTML to your footer to give the buttons Aria-labels.

Good luck!

J.Olson

Link to comment

@Jolsonphotography Hey Josh, good on you for sharing and helping others to improve the accessibility of their websites 🙂.

For info, you can improve this further by placing all the querySelector statements within just one OnInit function, rather than two (or more). It won’t change what it does, but it will be more efficient.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.