Skip to content

Addings Text headings - #2113

Merged
Niels Laute (niels9001) merged 3 commits into
mainfrom
fix/accessible-heading-levels
Feb 13, 2026
Merged

Niels Laute (niels9001) merged 3 commits into
mainfrom
fix/accessible-heading-levels

Conversation

@niels9001

Copy link
Copy Markdown
Collaborator

Closes: #1224

@niels9001
Niels Laute (niels9001) enabled auto-merge (squash) February 12, 2026 16:59
@niels9001

Copy link
Copy Markdown
Collaborator Author

/azp run

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #1224 by introducing accessible heading styles that combine visual typography with semantic heading levels for screen readers. The PR creates SubtitleHeadingTextBlockStyle (Level2) and BodyStrongHeadingTextBlockStyle (Level3) that encapsulate both visual styling and accessibility properties, making it easier for developers to create properly marked-up headings throughout the gallery.

Changes:

  • Added two new accessible heading styles in TextBlock.xaml that combine visual styles with AutomationProperties.HeadingLevel
  • Updated section headings in four pages to use the new accessible heading styles instead of plain text styles
  • Added HeadingLevel property to "No results" message in search results page

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
WinUIGallery/Styles/TextBlock.xaml Defines SubtitleHeadingTextBlockStyle (Level2) and BodyStrongHeadingTextBlockStyle (Level3)
WinUIGallery/Samples/ControlPages/Fundamentals/XamlResourcesPage.xaml Updated two section headings to use SubtitleHeadingTextBlockStyle
WinUIGallery/Samples/ControlPages/Fundamentals/CustomUserControlsPage.xaml Updated two section headings to use SubtitleHeadingTextBlockStyle
WinUIGallery/Samples/ControlPages/AppWindowPage.xaml Updated two section headings to use SubtitleHeadingTextBlockStyle
WinUIGallery/Samples/ControlPages/Accessibility/AccessibilityColorContrastPage.xaml Updated section heading to use SubtitleHeadingTextBlockStyle
WinUIGallery/Pages/SearchResultsPage.xaml Added AutomationProperties.HeadingLevel to "No results" message
@niels9001
Niels Laute (niels9001) merged commit 18ef647 into main Feb 13, 2026
10 checks passed
@niels9001
Niels Laute (niels9001) deleted the fix/accessible-heading-levels branch February 13, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants