Site logo

Archived topic

2 Accessibility errors in my site

1 reply · Started by sandeep kumar on November 17, 2021

Viewing posts 1–2 of 2

Hi

I'm getting two accessibility errors on my website

1. Buttons do not have an accessible name
aside#block-11 > form.wp-block-search__button-outside > div.wp-block-search__inside-wrapper > button.wp-block-search__button
<button type="submit" class="wp-block-search__button has-icon">

2. Form elements do not have associated labels
aside#block-11 > form.wp-block-search__button-outside > div.wp-block-search__inside-wrapper > input#wp-block-search__input-1
<input type="search" id="wp-block-search__input-1" class="wp-block-search__input" name="s" value="" placeholder="" required="">

Kindly help me to solve this issue

Thanks

Hi there,

The elements mentioned are WordPress Core blocks. (Button block and Search block)

The tool you're using may not be perceiving enough contrast between the element and its background.

You may have to tweak around the colors and add a placeholder text to improve it's accessibility score.

This archived topic is closed to new replies.