Fix icon color

This commit is contained in:
saltrafael 2021-08-03 14:17:56 -03:00 committed by jessopb
parent a6ad758c71
commit 426042feab
2 changed files with 1 additions and 10 deletions

View file

@ -25,13 +25,9 @@ export default function CollectionAddButton(props: Props) {
return ( return (
<Button <Button
button={fileAction ? undefined : 'alt'} button={fileAction ? undefined : 'alt'}
className={classnames({ className={classnames({ 'button--file-action': fileAction })}
'button--file-action': fileAction,
'button--file-action-active': fileAction && isSaved,
})}
icon={fileAction ? (!isSaved ? ICONS.ADD : ICONS.STACK) : ICONS.LIBRARY} icon={fileAction ? (!isSaved ? ICONS.ADD : ICONS.STACK) : ICONS.LIBRARY}
iconSize={fileAction ? 22 : undefined} iconSize={fileAction ? 22 : undefined}
iconColor={isSaved && 'green'}
label={uri ? (!isSaved ? __('Save') : __('Saved')) : __('New List')} label={uri ? (!isSaved ? __('Save') : __('Saved')) : __('New List')}
requiresAuth={IS_WEB} requiresAuth={IS_WEB}
title={__('Add this claim to a list')} title={__('Add this claim to a list')}

View file

@ -240,11 +240,6 @@
} }
} }
.button--file-action-active {
@extend .button--file-action;
color: var(--color-link);
}
.button--fire { .button--fire {
color: var(--color-fire); color: var(--color-fire);
position: relative; position: relative;