Skip to content

Commit

Permalink
docs(sbb-mini-button-group): improve a11y examples
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga committed Jul 24, 2024
1 parent e3847d2 commit e0e5355
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/elements/mini-button-group/readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
The `sbb-mini-button-group` component displays a set of [sbb-mini-button](/docs/elements-sbb-button-sbb-mini-button--docs) optionally separated by a [sbb-divider](/docs/elements-sbb-divider--docs).

```html
<sbb-mini-button-group>
<sbb-mini-button icon-name="..."></sbb-mini-button>
<sbb-mini-button icon-name="..."></sbb-mini-button>
<sbb-mini-button-group accessibility-label="...">
<sbb-mini-button icon-name="..." aria-label="..."></sbb-mini-button>
<sbb-mini-button icon-name="..." aria-label="..."></sbb-mini-button>
<sbb-divider orientation="vertical"></sbb-divider>
<sbb-mini-button icon-name="..."></sbb-mini-button>
<sbb-mini-button icon-name="..." aria-label="..."></sbb-mini-button>
</sbb-mini-button-group>
```

Expand All @@ -19,6 +19,10 @@ There are four available sizes: `s`, `m` (default), `l` and `xl`.
<sbb-mini-button-group negative size="l"> ... </sbb-mini-button-group>
```

## Accessibility

Use the `accessibility-label` property to describe the purpose of the `sbb-mini-button-group` for screen-reader users.

<!-- Auto Generated Below -->

## Properties
Expand Down

0 comments on commit e0e5355

Please sign in to comment.