Fix(a11y): replace overflow:hidden on tsconfig H3 headings with word-…#3601
Merged
Conversation
…break Bug 2201689 - MAS 1.4.4 Resize Text: 'Strict Property Initialization' not visible properly at 1280x768 100% zoom on TSConfig Reference page. Root cause: .compiler-option > h3 had overflow-x: hidden (and overflow-y: hidden at <=800px), which clips heading text when the user resizes text to large sizes - a WCAG 1.4.4 (Resize Text) violation. Fix: - Replace overflow-x: hidden with word-break: break-word + overflow-wrap: break-word on .compiler-option > h3 so option names wrap instead of being clipped - Remove overflow-y: hidden from the 800px media query for the same reason - Replace overflow-x: hidden with overflow-wrap: break-word on nav-top h5 elements at the 480px breakpoint Verified with Playwright at 1280x768 (overflow: visible confirmed) and at 200% text zoom (scrollWidth === clientWidth, no clipping). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-plant-05c166c10-3601.centralus.5.azurestaticapps.net |
jakebailey
approved these changes
Jul 1, 2026
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.
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2201689
Bug 2201689 - MAS 1.4.4 Resize Text: 'Strict Property Initialization' not visible properly at 1280x768 100% zoom on TSConfig Reference page.
Root cause: .compiler-option > h3 had overflow-x: hidden (and overflow-y: hidden at <=800px), which clips heading text when the user resizes text to large sizes - a WCAG 1.4.4 (Resize Text) violation.
Fix:
Verified with Playwright at 1280x768 (overflow: visible confirmed) and at 200% text zoom (scrollWidth === clientWidth, no clipping).