woocommerce
woocommerce copied to clipboard
[Accessibility] Provide screen readers with product sorting status message
Submission Review Guidelines:
- I have followed the WooCommerce Contributing Guidelines and the WordPress Coding Standards.
- I have checked to ensure there aren't other open Pull Requests for the same update/change.
- I have reviewed my code for security best practices.
- Following the above guidelines will result in quick merges and clear and detailed feedback when appropriate.
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.
- Go to the shop page.
- Sort products by any one of the options available in the sort input.
- Verify the sorting status message is announced once the page loads.
- 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.
- Open the product catalog page.
- Sort products by any one of the options available in the sort input.
- Verify the sorting status message is announced once the page loads.
- 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.
- Open the product catalog page.
- 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