Toggle the theme on pressing the enter key #27
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request resolves several accessibility issues in the Tutor Indigo theme that were identified during a recent accessibility review. These updates aim to improve usability for all users, especially those relying on assistive technologies. The changes also help ensure compliance with recognized accessibility standards, such as the Web Content Accessibility Guidelines (WCAG) 2.1.
For further details, please refer to the related issue: overhangio/tutor-indigo#146.
Accessibility Fixes Implemented
Focus on the Theme Toggle Button
The theme toggle button lacked a visible focus indicator for keyboard users. This has been addressed by ensuring a clear focus style is applied.
Theme Toggle Button Does Not Have an Accessible Name
The theme toggle button previously lacked an accessible name, which made it unclear to screen reader users. This update adds a title attribute with the value "Toggle Theme" to ensure assistive technologies can properly identify the button's purpose.
Accessibility Audit Report
For the full audit and issue breakdown, please refer to the following report:
Accessibility Audit - Taiga US/111