Skip to content

Commit 2fa1233

Browse files
committed
Quote block: variation instead of level and more accurate placeholder
1 parent 7c3bd20 commit 2fa1233

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

blocks/library/quote/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ registerBlock( 'core/quote', {
2020
citation: html( 'footer' )
2121
},
2222

23-
controls: [ '1', '2' ].map( ( level ) => ( {
23+
controls: [ '1', '2' ].map( ( variation ) => ( {
2424
icon: 'format-quote',
25-
title: wp.i18n.sprintf( wp.i18n.__( 'Quote %s' ), level ),
26-
isActive: ( { style = '1' } ) => style === level,
25+
title: wp.i18n.sprintf( wp.i18n.__( 'Quote %s' ), variation ),
26+
isActive: ( { style = '1' } ) => style === style,
2727
onClick( attributes, setAttributes ) {
28-
setAttributes( { style: level } );
28+
setAttributes( { style: variation } );
2929
},
30-
level
30+
level: variation
3131
} ) ),
3232

3333
edit( { attributes, setAttributes, focus, setFocus } ) {

0 commit comments

Comments
 (0)