8
0
فهرست منبع

Merge pull request #40 from ckeditor/t/ckeditor5/1403

Fix: The UI buttons should be marked as toggleable for better assistive technologies support (see ckeditor/ckeditor5#1403).
Aleksander Nowodzinski 6 سال پیش
والد
کامیت
a58103b2b8
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 1
      packages/ckeditor5-block-quote/src/blockquoteui.js
  2. 1 0
      packages/ckeditor5-block-quote/tests/blockquoteui.js

+ 2 - 1
packages/ckeditor5-block-quote/src/blockquoteui.js

@@ -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.

+ 1 - 0
packages/ckeditor5-block-quote/tests/blockquoteui.js

@@ -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', () => {