diff --git a/src/alignmentui.js b/src/alignmentui.js index 2594a32..bb9a5db 100644 --- a/src/alignmentui.js +++ b/src/alignmentui.js @@ -140,7 +140,8 @@ export default class AlignmentUI extends Plugin { buttonView.set( { label: this.localizedOptionTitles[ option ], icon: icons.get( option ), - tooltip: true + tooltip: true, + isToggleable: true } ); // Bind button model to command. diff --git a/tests/alignmentui.js b/tests/alignmentui.js index d36321c..35e54da 100644 --- a/tests/alignmentui.js +++ b/tests/alignmentui.js @@ -60,6 +60,7 @@ describe( 'Alignment UI', () => { expect( button ).to.have.property( 'label', 'Align left' ); expect( button ).to.have.property( 'icon' ); expect( button ).to.have.property( 'tooltip', true ); + expect( button ).to.have.property( 'isToggleable', true ); } ); it( 'has isOn bound to command\'s value', () => {