diff --git a/modules/react/banner/lib/hooks/index.ts b/modules/react/banner/lib/hooks/index.ts index 8c8010ddc2..13bc7cf17e 100644 --- a/modules/react/banner/lib/hooks/index.ts +++ b/modules/react/banner/lib/hooks/index.ts @@ -4,5 +4,4 @@ export * from './useThemedPalette'; export * from './useBannerIcon'; export * from './useBannerLabel'; export * from './useBannerActionText'; -export * from './useBanner'; export {getPaletteColors}; diff --git a/modules/react/banner/lib/hooks/useBanner.tsx b/modules/react/banner/lib/hooks/useBanner.tsx deleted file mode 100644 index 305d3f46a7..0000000000 --- a/modules/react/banner/lib/hooks/useBanner.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import {createElemPropsHook} from '@workday/canvas-kit-react/common'; -import {useBannerModel} from './useBannerModel'; - -/** - * Adds the necessary props to a `Banner` component. - * Used by the Banner component - */ -export const useBanner = createElemPropsHook(useBannerModel)(({state}) => { - return { - 'aria-describedby': `label-${state.id}`, - 'aria-labelledby': `action-${state.id}`, - }; -}); diff --git a/modules/react/banner/stories/Banner.stories.mdx b/modules/react/banner/stories/Banner.stories.mdx index 7bc3b2c902..a88e35dc87 100644 --- a/modules/react/banner/stories/Banner.stories.mdx +++ b/modules/react/banner/stories/Banner.stories.mdx @@ -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`.