Skip to content

Commit

Permalink
add typography supports
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Sep 15, 2022
1 parent 6f147a5 commit 14a2f8b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const elements = {
description: __( 'Manage the fonts and typography used on headings.' ),
title: __( 'Headings' ),
},
caption: {
description: __( 'Manage the fonts and typography used on captions.' ),
title: __( 'Captions' ),
},
button: {
description: __( 'Manage the fonts and typography used on buttons.' ),
title: __( 'Buttons' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ function ScreenTypography( { name } ) {
element="heading"
label={ __( 'Headings' ) }
/>
<Item
name={ name }
parentMenu={ parentMenu }
element="caption"
label={ __( 'Captions' ) }
/>
<Item
name={ name }
parentMenu={ parentMenu }
Expand Down
6 changes: 6 additions & 0 deletions packages/edit-site/src/components/global-styles/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ function ContextScreens( { name } ) {
<ScreenTypographyElement name={ name } element="heading" />
</GlobalStylesNavigationScreen>

<GlobalStylesNavigationScreen
path={ parentMenu + '/typography/caption' }
>
<ScreenTypographyElement name={ name } element="caption" />
</GlobalStylesNavigationScreen>

<GlobalStylesNavigationScreen
path={ parentMenu + '/typography/button' }
>
Expand Down

0 comments on commit 14a2f8b

Please sign in to comment.