@@ -123,36 +123,26 @@ export const MenuBarMixin = (superClass) =>
123123 * ];
124124 * ```
125125 *
126- * #### Disabled buttons
126+ * #### Disabled items
127127 *
128- * When disabled, menu bar buttons (root-level items) are rendered
129- * as "dimmed" and prevent all user interactions (mouse and keyboard).
128+ * When disabled, menu bar items are rendered as "dimmed".
130129 *
131- * Since disabled buttons are not focusable and cannot react to hover
132- * events by default, it can cause accessibility issues by making them
133- * entirely invisible to assistive technologies, and prevents the use
134- * of Tooltips to explain why the action is not available. This can be
135- * addressed by enabling the feature flag `accessibleDisabledButtons`,
136- * which makes disabled buttons focusable and hoverable, while still
137- * preventing them from being triggered:
130+ * By default, disabled items are not focusable and don't react to hover.
131+ * As a result, they are hidden from assistive technologies, and it's not
132+ * possible to show a tooltip to explain why they are disabled. This can be
133+ * addressed by enabling several feature flags, which makes disabled items
134+ * focusable and hoverable, while still preventing them from being activated:
138135 *
139136 * ```js
140- * // Set before any menu bar is attached to the DOM.
137+ * // Allow focus and hover interactions with disabled menu bar root items (buttons)
141138 * window.Vaadin.featureFlags.accessibleDisabledButtons = true;
142- * ```
143- *
144- * #### Disabled sub-menu items
145- *
146- * Likewise, disabled sub-menu items are not focusable or hoverable
147- * by default. Enabling the feature flag `accessibleDisabledMenuItems`
148- * makes them focusable and hoverable, while still preventing them
149- * from being triggered:
150139 *
151- * ```js
152- * // Set before any menu bar is attached to the DOM.
140+ * // Allow focus and hover interactions with disabled menu bar sub-menu items
153141 * window.Vaadin.featureFlags.accessibleDisabledMenuItems = true;
154142 * ```
155143 *
144+ * Both flags must be set before any menu bar is attached to the DOM.
145+ *
156146 * @type {!Array<!MenuBarItem> }
157147 */
158148 items : {
0 commit comments