Library: Add some context about the currently selected category to the main 'Library Content' region #52006
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Description
In the library, a user selects a category using the options in the 'navigation' region.
![Screen Shot 2023-06-28 at 11 44 52 am](https://private-user-images.githubusercontent.com/677833/249339755-494c5787-1b74-4800-b6ea-52ef7f3013cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTMyMjksIm5iZiI6MTczODkxMjkyOSwicGF0aCI6Ii82Nzc4MzMvMjQ5MzM5NzU1LTQ5NGM1Nzg3LTFiNzQtNDgwMC1iNmVhLTUyZWY3ZjMwMTNjYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QwNzIyMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYzFhNTQ4MmZmZDBmY2E0ZTA5NjVlMjBiZTY3MWMwYzRmZjY5MmI4YzQzZTAxNGI0Y2ZkZmNiYjMyNGQ2NTE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tSYX_ZHUcsX1HSN7QJjAqNWJVJSFQ-ZqwHWIBmdtG5Q)
In the main 'Library content' region there's no contextual clues as to what category is currently being viewed.
![Screen Shot 2023-06-28 at 11 46 01 am](https://private-user-images.githubusercontent.com/677833/249339904-1e9b623a-854d-49ce-86e5-4bd41cbe069a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTMyMjksIm5iZiI6MTczODkxMjkyOSwicGF0aCI6Ii82Nzc4MzMvMjQ5MzM5OTA0LTFlOWI2MjNhLTg1NGQtNDljZS04NmU1LTRiZDQxY2JlMDY5YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QwNzIyMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZGQ4OTFjZGRhNzAyNDEwNTU5NDEyNmEyOGFlOTQ3OWM4OWUyN2YxYzg1YmRjNGEyNTg2MTZhYjVlM2MwMjBiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yQ7kbCwawyIFC3hL-3s-0IgaSop4Ei5l2SB2dNDWHGI)
This would likely be frustrating for anyone using a screenreader, as the only way to know the selected category would be to check back through the navigation items to find the one currently selected.
To improve this, I think it'd be good to add a heading at the start of the main area. If it doesn't fit with the design it could be
VisuallyHidden
.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: