@ckeditor/ckeditor5-font 42.0.2 → 43.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-font",
3
- "version": "42.0.2",
3
+ "version": "43.0.0-alpha.0",
4
4
  "description": "Font feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,11 +13,11 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "42.0.2",
17
- "@ckeditor/ckeditor5-engine": "42.0.2",
18
- "@ckeditor/ckeditor5-ui": "42.0.2",
19
- "@ckeditor/ckeditor5-utils": "42.0.2",
20
- "ckeditor5": "42.0.2"
16
+ "@ckeditor/ckeditor5-core": "43.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-engine": "43.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-ui": "43.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-utils": "43.0.0-alpha.0",
20
+ "ckeditor5": "43.0.0-alpha.0"
21
21
  },
22
22
  "author": "CKSource (http://cksource.com/)",
23
23
  "license": "GPL-2.0-or-later",
@@ -67,8 +67,11 @@ export default class FontFamilyUI extends Plugin {
67
67
  for (const definition of listOptions) {
68
68
  const listItemView = new MenuBarMenuListItemView(locale, menuView);
69
69
  const buttonView = new MenuBarMenuListItemButtonView(locale);
70
+ buttonView.set({
71
+ role: 'menuitemradio',
72
+ isToggleable: true
73
+ });
70
74
  buttonView.bind(...Object.keys(definition.model)).to(definition.model);
71
- buttonView.bind('ariaChecked').to(buttonView, 'isOn');
72
75
  buttonView.delegate('execute').to(menuView);
73
76
  buttonView.on('execute', () => {
74
77
  editor.execute(definition.model.commandName, {
@@ -71,8 +71,11 @@ export default class FontSizeUI extends Plugin {
71
71
  for (const definition of listOptions) {
72
72
  const listItemView = new MenuBarMenuListItemView(locale, menuView);
73
73
  const buttonView = new MenuBarMenuListItemButtonView(locale);
74
+ buttonView.set({
75
+ role: 'menuitemradio',
76
+ isToggleable: true
77
+ });
74
78
  buttonView.bind(...Object.keys(definition.model)).to(definition.model);
75
- buttonView.bind('ariaChecked').to(buttonView, 'isOn');
76
79
  buttonView.delegate('execute').to(menuView);
77
80
  buttonView.on('execute', () => {
78
81
  editor.execute(definition.model.commandName, {