Ckeditor4: MenuButton with label puts "(Selected)" at the end of the label when clicked

Created on 31 May 2017  路  2Comments  路  Source: ckeditor/ckeditor4

Are you reporting a feature or a bug?

Bug

Check if the issue is already reported

http://dev.ckeditor.com/ticket/14237

Provide detailed reproduction steps (if any)

  1. Add a Menu Button to the toolbar, using the menubutton plugin.
  2. Change the skin css to show the label for the button.
  3. Open the editor and click on the menu button

Expected result

The menu button label should not change.

Actual result

The menu button label changes from 'Label' to 'Label (Selected)'.

confirmed support minor bug

Most helpful comment

@jacekbogdanski aria-expanded attribute should be used to denote opened menu. See https://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-links.html#rps_label.

All 2 comments

I wonder how this change will affect accessibility? Additional (Selected) postfix is added for TRISTATE_ON state for buttons with arrow indicator i.e colorbutton and menubutton. Do we need indicate by aria label that the button is opened like Language (Selected), Background Color (Selected)?

@jacekbogdanski aria-expanded attribute should be used to denote opened menu. See https://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-links.html#rps_label.

Was this page helpful?
0 / 5 - 0 ratings