* remove option to use H1
This commit is contained in:
Seghir Nadir 2019-11-14 14:26:35 +01:00 committed by GitHub
parent a84990d10f
commit f6401a87c4
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ const blockConfig = {
<p>{ __( 'Level', 'woo-gutenberg-products-block' ) }</p>
<HeadingToolbar
isCollapsed={ false }
minLevel={ 1 }
minLevel={ 2 }
maxLevel={ 7 }
selectedLevel={ level }
onChange={ ( newLevel ) =>

View File

@ -21,7 +21,7 @@ class HeadingToolbar extends Component {
const isActive = targetLevel === selectedLevel;
return {
icon: <HeadingLevelIcon level={ targetLevel } />,
// translators: %s: heading level e.g: "1", "2", "3"
// translators: %s: heading level e.g: "2", "3", "4"
title: sprintf( __( 'Heading %d' ), targetLevel ),
isActive,
onClick: () => onChange( targetLevel ),