0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): default button icon should use secondary color (#4924)

This commit is contained in:
Charles Zhao 2023-11-21 15:21:29 +08:00 committed by GitHub
parent 651902c97d
commit cb18c2ade8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 10 deletions

View file

@ -93,6 +93,10 @@
border-width: 1px;
border-style: solid;
.icon {
color: var(--color-text-secondary);
}
&:disabled {
border-color: var(--color-border);
color: var(--color-neutral-70);

View file

@ -13,9 +13,6 @@
.empty {
font: var(--font-body-2);
}
.secondary {
color: var(--color-text-secondary);
}

View file

@ -97,16 +97,11 @@ function TemplateTable<
{onAdd && !hasData && (
<>
{name && (
<div className={classNames(styles.empty, styles.secondary)}>
<div className={classNames(styles.empty)}>
{t('organizations.empty_placeholder', { entity: String(t(name)).toLowerCase() })}
</div>
)}
<Button
className={styles.secondary}
icon={<Plus />}
title="general.add"
onClick={onAdd}
/>
<Button icon={<Plus />} title="general.add" onClick={onAdd} />
</>
)}
</section>