feat: add audit page title, subtitle, and CLI snippet (#3419)

* resolves #3356

* scaffolded out new audit page header

resolves #3357

* added tests and stories

* run prettier
This commit is contained in:
Kira Pilot
2022-08-08 21:08:36 -04:00
committed by GitHub
parent 049e7cb5df
commit e62677efab
10 changed files with 163 additions and 16 deletions

View File

@ -15,6 +15,10 @@ export interface HelpTooltipProps {
size?: Size
}
export const Language = {
ariaLabel: "tooltip",
}
const HelpTooltipContext = createContext<{ open: boolean; onClose: () => void } | undefined>(
undefined,
)
@ -52,6 +56,7 @@ export const HelpTooltip: React.FC<HelpTooltipProps> = ({ children, open, size =
onMouseEnter={() => {
setIsOpen(true)
}}
aria-label={Language.ariaLabel}
>
<HelpIcon className={styles.icon} />
</button>