Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #40 from ckeditor/t/ckeditor5/1403
Browse files Browse the repository at this point in the history
Fix: The UI buttons should be marked as toggleable for better assistive technologies support (see ckeditor/ckeditor5#1403).
  • Loading branch information
oleq authored Aug 12, 2019
2 parents c48b703 + fa34b49 commit aa24686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/blockquoteui.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default class BlockQuoteUI extends Plugin {
buttonView.set( {
label: t( 'Block quote' ),
icon: quoteIcon,
tooltip: true
tooltip: true,
isToggleable: true
} );

// Bind button model to command.
Expand Down
1 change: 1 addition & 0 deletions tests/blockquoteui.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe( 'BlockQuoteUI', () => {
expect( button ).to.have.property( 'label', 'Block quote' );
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', () => {
Expand Down

0 comments on commit aa24686

Please sign in to comment.