Improve UI of IconButton when disabled

update-emoji-mart
Justin 2022-07-06 14:19:42 -04:00
rodzic 37d26658fc
commit 3f74455484
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -25,6 +25,7 @@ const IconButton = React.forwardRef((props: IIconButton, ref: React.ForwardedRef
type='button'
className={classNames('flex items-center space-x-2 p-1 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 dark:ring-offset-0 focus:ring-primary-500', {
'bg-white dark:bg-transparent': !transparent,
'opacity-50': filteredProps.disabled,
}, className)}
{...filteredProps}
data-testid='icon-button'