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 #44 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 committed Aug 12, 2019
2 parents edc7d8b + 5a7be4f commit 599ea01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/alignmentui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions tests/alignmentui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 599ea01

Please sign in to comment.