Skip to content

Commit

Permalink
Site Editor: update headings hierarchy in the 'Manage all' screens (#…
Browse files Browse the repository at this point in the history
…52271)

* This commit:
- updates heading levels on the template and template part pages
- passes a `level` prop to Header from Page

* update h2 size

* Rolling back custom sizes

* Rolling back unnecessary classNames
There was a rogue space in trunk. Let's let it live
  • Loading branch information
ramonjd authored and tellthemachines committed Jul 7, 2023
1 parent 14bb146 commit 8dab0a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function PageTemplateParts() {
header: __( 'Template Part' ),
cell: ( templatePart ) => (
<VStack>
<Heading level={ 5 }>
<Heading as="h3" level={ 5 }>
<Link
params={ {
postId: templatePart.id,
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page-templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function PageTemplates() {
header: __( 'Template' ),
cell: ( template ) => (
<VStack>
<Heading level={ 5 }>
<Heading as="h3" level={ 5 }>
<Link
params={ {
postId: template.id,
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Header( { title, subTitle, actions } ) {
<HStack as="header" alignment="left" className="edit-site-page-header">
<FlexBlock className="edit-site-page-header__page-title">
<Heading
as="h1"
as="h2"
level={ 4 }
className="edit-site-page-header__title"
>
Expand Down

0 comments on commit 8dab0a0

Please sign in to comment.