Skip to content

Commit

Permalink
Global Styles: add tooltips to the heading level selectors (#64039)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ndiego <[email protected]>
  • Loading branch information
4 people authored Jul 29, 2024
1 parent 982b68c commit 27fbbd8
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,30 +67,44 @@ function ScreenTypographyElement( { element } ) {
>
<ToggleGroupControlOption
value="heading"
showTooltip
aria-label={ __( 'All headings' ) }
label={ _x( 'All', 'heading levels' ) }
/>
<ToggleGroupControlOption
value="h1"
showTooltip
aria-label={ __( 'Heading 1' ) }
label={ __( 'H1' ) }
/>
<ToggleGroupControlOption
value="h2"
showTooltip
aria-label={ __( 'Heading 2' ) }
label={ __( 'H2' ) }
/>
<ToggleGroupControlOption
value="h3"
showTooltip
aria-label={ __( 'Heading 3' ) }
label={ __( 'H3' ) }
/>
<ToggleGroupControlOption
value="h4"
showTooltip
aria-label={ __( 'Heading 4' ) }
label={ __( 'H4' ) }
/>
<ToggleGroupControlOption
value="h5"
showTooltip
aria-label={ __( 'Heading 5' ) }
label={ __( 'H5' ) }
/>
<ToggleGroupControlOption
value="h6"
showTooltip
aria-label={ __( 'Heading 6' ) }
label={ __( 'H6' ) }
/>
</ToggleGroupControl>
Expand Down

1 comment on commit 27fbbd8

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 27fbbd8.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10137643450
📝 Reported issues:

Please sign in to comment.