Site logo

Archived topic

Buttons do not have an accessible name

3 replies · Started by Saqlain Abbas on March 17, 2023

Viewing posts 1–4 of 4

So I am getting this error on google page speeds.
screenshot: https://prnt.sc/hkNgF0HLAEiS
I am unable to find a solution on how can I add the value of the aria label on this search button. Currently, the (aria-label="") value is empty.

I tried to add the custom attribute via (Block -> Container -> Advanced) but it adds aria-label in the div section, not inside the button.

Kindly help me with this problem, Thanks.

Hi there,

that is the core search block, select it, Uncheck the Use Button with Icon in the blocks toolbar. Then in the Button type some text eg. Search and then recheck the Use Button with Icon`. That block will then add that text to the aria

It worked! Thank you so much, David.

You're welcome

This archived topic is closed to new replies.