Skip to content

Commit

Permalink
Rolling back custom sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Jul 5, 2023
1 parent b2cfe6c commit b735596
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
10 changes: 0 additions & 10 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,3 @@
width: 100%;
}
}

.edit-site-page-template-parts,
.edit-site-page-templates {
h2 {
font-size: 0.9rem;
}
h3 {
font-size: 0.82rem;
}
}
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={ 3 }>
<Heading as="h3" level={ 5 }>
<Link
params={ {
postId: templatePart.id,
Expand Down Expand Up @@ -87,7 +87,6 @@ export default function PageTemplateParts() {
return (
<Page
title={ __( 'Template Parts' ) }
titleLevel={ 2 }
className="edit-site-page-template-parts"
actions={
canCreate && (
Expand Down
3 changes: 1 addition & 2 deletions 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={ 3 }>
<Heading as="h3" level={ 5 }>
<Link
params={ {
postId: template.id,
Expand Down Expand Up @@ -88,7 +88,6 @@ export default function PageTemplates() {
return (
<Page
title={ __( 'Templates' ) }
titleLevel={ 2 }
className="edit-site-page-templates"
actions={
canCreate && (
Expand Down
5 changes: 3 additions & 2 deletions packages/edit-site/src/components/page/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import {
* Internal dependencies
*/

export default function Header( { title, subTitle, actions, level = 1 } ) {
export default function Header( { title, subTitle, actions } ) {
return (
<HStack as="header" alignment="left" className="edit-site-page-header">
<FlexBlock className="edit-site-page-header__page-title">
<Heading
level={ level }
as="h2"
level={ 4 }
className="edit-site-page-header__title"
>
{ title }
Expand Down
2 changes: 0 additions & 2 deletions packages/edit-site/src/components/page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import Header from './header';

export default function Page( {
title,
titleLevel,
subTitle,
actions,
children,
Expand All @@ -32,7 +31,6 @@ export default function Page( {
title={ title }
subTitle={ subTitle }
actions={ actions }
level={ titleLevel }
/>
) }
<div className="edit-site-page-content">
Expand Down

0 comments on commit b735596

Please sign in to comment.