Fixed NotificationBadge color
This commit is contained in:
parent
1651a90dea
commit
284ed9dea1
3 changed files with 8 additions and 3 deletions
|
@ -8,7 +8,7 @@ function NotificationBadge({ alert, content }) {
|
|||
const notificationClass = alert ? ' notification-badge--alert' : '';
|
||||
return (
|
||||
<div className={`notification-badge${notificationClass}`}>
|
||||
{content && <Text variant="b3">{content}</Text>}
|
||||
{content !== null && <Text variant="b3">{content}</Text>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -2,17 +2,18 @@
|
|||
min-width: 16px;
|
||||
min-height: 8px;
|
||||
padding: 0 var(--sp-ultra-tight);
|
||||
background-color: var(--tc-surface-low);
|
||||
background-color: var(--bg-badge);
|
||||
border-radius: var(--bo-radius);
|
||||
|
||||
.text {
|
||||
color: white;
|
||||
color: var(--tc-badge);
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
&--alert {
|
||||
background-color: var(--bg-danger);
|
||||
& .text { color: white }
|
||||
}
|
||||
|
||||
&:empty {
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
--bg-danger-border: rgba(240, 71, 71, 20%);
|
||||
|
||||
--bg-tooltip: #353535;
|
||||
--bg-badge: #989898;
|
||||
|
||||
/* text color | --tc-[background type]-[priority]: value */
|
||||
--tc-surface-high: #000000;
|
||||
|
@ -57,6 +58,7 @@
|
|||
--tc-code: #e62498;
|
||||
|
||||
--tc-tooltip: white;
|
||||
--tc-badge: white;
|
||||
|
||||
|
||||
/* system icons | --ic-[background type]-[priority]: value */
|
||||
|
@ -179,6 +181,7 @@
|
|||
--bg-primary-border: rgba(59, 119, 191, 38%);
|
||||
|
||||
--bg-tooltip: #000;
|
||||
--bg-badge: hsl(0, 0%, 75%);
|
||||
|
||||
/* text color | --tc-[background type]-[priority]: value */
|
||||
--tc-surface-high: rgba(255, 255, 255, 94%);
|
||||
|
@ -190,6 +193,7 @@
|
|||
--tc-primary-low: rgba(255, 255, 255, 0.4);
|
||||
|
||||
--tc-code: #e565b1;
|
||||
--tc-badge: black;
|
||||
|
||||
/* system icons | --ic-[background type]-[priority]: value */
|
||||
--ic-surface-normal: rgba(255, 255, 255, 68%);
|
||||
|
|
Loading…
Reference in a new issue