diff --git a/modules/react/action-bar/stories/ActionBar.mdx b/modules/react/action-bar/stories/ActionBar.mdx index 42d65d2e8f..d07549f065 100644 --- a/modules/react/action-bar/stories/ActionBar.mdx +++ b/modules/react/action-bar/stories/ActionBar.mdx @@ -29,7 +29,7 @@ yarn add @workday/canvas-kit-react ### Basic Example `ActionBar` includes a container `ActionBar` component and the following subcomponent: -`ActionBar.List` which should contains `ActionBar.Item`. +`ActionBar.List` which should contain `ActionBar.Item`. In a basic example of an `ActionBar` there are two buttons. The primary action button should be used only once and left aligned if content is left to right, followed by secondary buttons. Tertiary @@ -46,8 +46,8 @@ with `ActionBar.Item` such as `icon` or `size`. ### Delete Action Example -`ActionBar.Item` is a `SecondaryButton` by default but it's posible to change it to another element, -such as `DeleteButton`, by using `as` prop. +`ActionBar.Item` is a `SecondaryButton` by default but it's possible to change it to another +element, such as `DeleteButton`, by using `as` prop. @@ -80,13 +80,15 @@ You can change it from the default of 3 to any number greater than 1 and less th The primary accessibility goal is a clearly named group of page-level actions where every action is a native, keyboard-operable button. Use Action Bar for the primary and secondary actions of a page or task. For a single action, use a [Button](/components/buttons/button/#accessibility) directly. -For a dense set of icon or dropdown controls that behaves as one tab stop, use -[Toolbar](https://workday.github.io/canvas-kit/?path=/docs/components-buttons-toolbar--docs). For -actions that open a task flow, compose [Modal](/components/popups/modal/#accessibility) or -[Dialog](/components/popups/dialog/#accessibility) from an **`ActionBar.Item`**. -See the [Menu Button pattern (APG)](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/), the -[Button pattern (APG)](https://www.w3.org/WAI/ARIA/apg/patterns/button/), and the Canvas Kit +Overflow in Action Bar uses [Menu](/components/popups/menu). + +For actions that open a modal or dialog, compose [Modal](/components/popups/modal) or +[Dialog](/components/popups/dialog) from an **`ActionBar.Item`** (see **Dialog/Modal trigger +composition** in Accessibility Requirements below). + +When actions overflow, keyboard and assistive technology behavior follow Canvas Kit +[Menu](/components/popups/menu/#accessibility). For broader guidance, see the Canvas Kit [Accessibility overview](https://workday.github.io/canvas-kit/?path=/docs/guides-accessibility-overview--docs). ### Minimum Accessible Structure @@ -100,7 +102,7 @@ import {ActionBar} from '@workday/canvas-kit-react/action-bar'; import {PrimaryButton} from '@workday/canvas-kit-react/button'; - + console.log('first action')}> First Action @@ -118,45 +120,34 @@ Canvas Kit applies these automatically. **Do not duplicate them** in consuming c **ARIA and DOM** (_applied by hooks/subcomponents_): -- **`ActionBar`**: Does not render an element. It creates the model and wraps its children in - **`Menu`** so the overflow menu shares state. -- **`ActionBar.List`**: Renders a `div` by default. It has no role of its own—use `as="section"` - with **`aria-label`** to expose a landmark. It is positioned fixed to the bottom of the viewport - unless you override `position`. -- **`ActionBar.Item`**: Renders a native `