woocommerce icon indicating copy to clipboard operation
woocommerce copied to clipboard

[Accessibility] Provide screen readers with product sorting status message

Open Manussakis opened this issue 6 months ago • 11 comments

Submission Review Guidelines:

Changes proposed in this Pull Request:

Closes #43569 .

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

Testing product catalog with pagination.

  1. Go to the shop page.
  2. Sort products by any one of the options available in the sort input.
  3. Verify the sorting status message is announced once the page loads.
  4. Verify the sorting status message is not announced when products are sorted by the default option once the page loads.

Testing product catalog with one page.

If you used the sample product data to create your store, the music category should meet this criteria product-category/music/ since only two products are under it.

  1. Open the product catalog page.
  2. Sort products by any one of the options available in the sort input.
  3. Verify the sorting status message is announced once the page loads.
  4. Verify the sorting status message is not announced when products are sorted by the default option once the page loads.

Testing product catalog with one product.

If you used the sample product data to create your store, the decor product category should meet this criteria product-category/decor/ since only one product is under it.

  1. Open the product catalog page.
  2. The sorting status message should never be announced since the sort action takes no effect if there is only one product in the catalog once the page loads.

Changelog entry

  • [ ] Automatically create a changelog entry from the details below.
  • [ ] This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Details

Significance

  • [ ] Patch
  • [ ] Minor
  • [ ] Major

Type

  • [ ] Fix - Fixes an existing bug
  • [ ] Add - Adds functionality
  • [ ] Update - Update existing functionality
  • [ ] Dev - Development related task
  • [ ] Tweak - A minor adjustment to the codebase
  • [ ] Performance - Address performance issues
  • [ ] Enhancement - Improvement to existing functionality

Message

Changelog Entry Comment

Comment

Manussakis avatar Aug 10 '24 19:08 Manussakis