-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review comments + where are the tests?
src/widgettoolbarrepository.js
Outdated
const toolbarView = new ToolbarView(); | ||
const locale = this.editor.locale; | ||
const t = locale.t; | ||
const toolbarView = new ToolbarView( locale, { ariaLabel: t( 'Widget\'s toolbar' ) } ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
As I pointed out in Add label for editor's toolbar ckeditor5-ui#500, the
ariaLabel
should be a property. -
#register
should allow customization ofariaLabel
(defaultt( 'Widget toolbar' )
). -
Having the above, we need PRs in
- ckeditor5-image
- ckeditor5-table
- ckeditor5-media-embed
that will correctly describe widgets introduced by the features ("Image toolbar", "Table toolbar", etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the description for PR to link changes in image, table, media-embed.
Co-Authored-By: Aleksander Nowodzinski <a.nowodzinski@cksource.com>
…UI language directions.
…UI language directions.
Suggested merge commit message (convention)
Other: Adds aria-label for widget's toolbar.
Additional information
Requires: ckeditor/ckeditor5-ui#500
Required by:
aria-label
for table toolbar ckeditor5-table#201aria-label
for image toolbar ckeditor5-image#302aria-label
for media embed toolbar ckeditor5-media-embed#88