Skip to content

Commit

Permalink
Quote block: variation instead of level and more accurate placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 21, 2017
1 parent 7c3bd20 commit 2fa1233
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions blocks/library/quote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ registerBlock( 'core/quote', {
citation: html( 'footer' )
},

controls: [ '1', '2' ].map( ( level ) => ( {
controls: [ '1', '2' ].map( ( variation ) => ( {
icon: 'format-quote',
title: wp.i18n.sprintf( wp.i18n.__( 'Quote %s' ), level ),
isActive: ( { style = '1' } ) => style === level,
title: wp.i18n.sprintf( wp.i18n.__( 'Quote %s' ), variation ),
isActive: ( { style = '1' } ) => style === style,
onClick( attributes, setAttributes ) {
setAttributes( { style: level } );
setAttributes( { style: variation } );
},
level
level: variation
} ) ),

edit( { attributes, setAttributes, focus, setFocus } ) {
Expand Down

0 comments on commit 2fa1233

Please sign in to comment.