Minor style updates

This commit is contained in:
Gregory Schier
2023-03-15 17:25:04 -07:00
parent d90a7331c9
commit 0b2e35bdde
7 changed files with 19 additions and 11 deletions

View File

@@ -22,6 +22,7 @@ export const IconButton = forwardRef<HTMLButtonElement, Props>(function IconButt
onClick,
className,
iconClassName,
tabIndex,
size = 'md',
iconSize,
...props
@@ -32,6 +33,9 @@ export const IconButton = forwardRef<HTMLButtonElement, Props>(function IconButt
return (
<Button
ref={ref}
aria-hidden={icon === 'empty'}
disabled={icon === 'empty'}
tabIndex={tabIndex ?? icon === 'empty' ? -1 : undefined}
onClick={(e) => {
if (showConfirm) setConfirmed();
onClick?.(e);