yashdotdev13 opened a new pull request, #1904:
URL: https://github.com/apache/wicket/pull/1904

   ## Description
   
   Fixes #1885.
   
   This PR improves the accessibility of the reference guide's table of 
contents by allowing readers to manually expand and collapse chapters 
containing subsections.
   
   Previously, chapter subsections were primarily expanded based on the current 
scroll position or keyboard focus. This made it difficult for screen reader 
users navigating in browse mode to discover and access collapsed sections.
   
   ### Changes made
   
   - Added disclosure buttons beside chapters containing subsections.
   - Added `aria-expanded` and `aria-controls` attributes to communicate 
disclosure state to assistive technologies.
   - Introduced independent manual expansion and collapse states.
   - Preserved the existing scroll-spy behavior and automatic chapter expansion.
   - Ensured manually expanded chapters remain expanded while scrolling.
   - Added CSS styling for disclosure chevrons, keyboard focus indicators, and 
touch-friendly button targets.
   - Preserved the existing TOC behavior when JavaScript is disabled.
   
   ### Testing
   
   - [x] `mvn -pl wicket-user-guide -Pguide generate-resources`
   - [x] Verified generated JavaScript and CSS.
   - [x] Tested manual chapter expansion and collapse.
   - [x] Tested expansion persistence while scrolling.
   - [x] Tested keyboard interaction using Tab, Enter, and Space.
   - [x] `git diff --check`
   
   ### Related issue
   
   Closes #1885


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to