Skip to content

Addings Text headings#2113

Merged
niels9001 merged 3 commits intomainfrom
fix/accessible-heading-levels
Feb 13, 2026
Merged

Addings Text headings#2113
niels9001 merged 3 commits intomainfrom
fix/accessible-heading-levels

Conversation

@niels9001
Copy link
Collaborator

Closes: #1224

@niels9001 niels9001 requested a review from marcelwgn February 12, 2026 11:15
@niels9001 niels9001 enabled auto-merge (squash) February 12, 2026 16:59
@niels9001
Copy link
Collaborator Author

/azp run

Copy link
Contributor

Copilot AI left a comment

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 niels9001 merged commit 18ef647 into main Feb 13, 2026
10 checks passed
@niels9001 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accessibility][Meta] Headings in examples and on pages should be accessible

3 participants