Skip to content

Commit

Permalink
updated docs with example and information on leadingVisual accessible…
Browse files Browse the repository at this point in the history
… lable
  • Loading branch information
joshfarrant committed Nov 29, 2024
1 parent 0f8bfa6 commit 817076e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/docs/content/components/BreakoutBanner/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ The content alignment can be changed using the `align` prop on the root `Breakou

### Leading visual

An accessible label should always be provided for the leading visual.

```jsx live
<BreakoutBanner leadingVisual={<LogoGithubIcon size="medium" />}>
<BreakoutBanner
leadingVisual={<LogoGithubIcon size="medium" aria-label="GitHub logo" />}
>
<BreakoutBanner.Heading>
Where the most ambitious teams build great things
</BreakoutBanner.Heading>
Expand Down

0 comments on commit 817076e

Please sign in to comment.