Repository navigation
feat: add accessibility hint for code block exit - #3209
Merged
Merged
Conversation
AlexAndBear
force-pushed
the
feat/codeblock-a11y-exit-hint
branch
from
August 24, 2026 09:56
8443e6a to
83e49af
Compare
AlexAndBear
force-pushed
the
feat/codeblock-a11y-exit-hint
branch
from
August 24, 2026 09:57
83e49af to
fce2b56
Compare
Add ARIA attributes to code block component to inform screen reader users about the Shift+Enter keyboard shortcut to exit the code block. This improves accessibility for users who rely on assistive technologies when tab indentation is enabled.
AlexAndBear
force-pushed
the
feat/codeblock-a11y-exit-hint
branch
from
August 24, 2026 10:15
b09e4f9 to
aa0ac93
Compare
JammingBen
approved these changes
Aug 24, 2026
…--default-mono-font-family)' for code tag already
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Adds ARIA attributes to the code block component to improve accessibility for keyboard navigation. When tab indentation is enabled in code blocks, users can no longer use the Tab key to exit. This PR adds
aria-describedbyto inform screen reader users that Shift+Enter is the keyboard shortcut to exit the code block.The implementation uses:
aria-describedby<span>with Tailwind'ssr-onlyclass containing the hint textRelated Issue
N/A
How Has This Been Tested
Types of changes