Skip to content

Commit

Permalink
fix: Remove usebanner hook
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel.carrera committed Sep 12, 2023
1 parent eb535bf commit 70716a2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion modules/react/banner/lib/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ export * from './useThemedPalette';
export * from './useBannerIcon';
export * from './useBannerLabel';
export * from './useBannerActionText';
export * from './useBanner';
export {getPaletteColors};
13 changes: 0 additions & 13 deletions modules/react/banner/lib/hooks/useBanner.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion modules/react/banner/stories/Banner.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ banner. This will change the defualt icon to `exclamationCircleIcon`.

### Icon Banner

When only using an icon in the `Banner`, use our `Tooltip` component to both show a visible text alternative, and assign an `aria-label` string to the child `Banner`.
When only using an icon in the `Banner`, use our `Tooltip` component to both show a visible text alternative, and assign an `aria-label` string to the child `Banner`.

<ExampleCodeBlock code={IconBanner} />

Expand Down

0 comments on commit 70716a2

Please sign in to comment.