fix: use ring instead of outline on components

This commit is contained in:
Aarnav Tale 2025-02-14 00:03:46 -05:00
parent 76d263b7e6
commit 44d08169a9
No known key found for this signature in database
4 changed files with 16 additions and 6 deletions

View file

@ -12,7 +12,6 @@ export interface TooltipProps extends AriaTooltipProps {
children: [React.ReactElement, React.ReactElement<TooltipBodyProps>];
}
// TODO: Fix Button accessibility outline + invoke
function Tooltip(props: TooltipProps) {
const state = useTooltipTriggerState({
...props,
@ -37,7 +36,10 @@ function Tooltip(props: TooltipProps) {
<button
ref={ref}
{...triggerProps}
className="flex items-center justify-center"
className={cn(
'flex items-center justify-center',
'focus:outline-none focus:ring rounded-xl',
)}
>
{component}
</button>