Keep habit tints readable and use shared typography
This commit is contained in:
@@ -46,7 +46,7 @@ export function HabitChart({
|
||||
const headingId = useId();
|
||||
const Heading = `h${headingLevel}` as const;
|
||||
if (trackingMethod) return (
|
||||
<section className={`ds-habit-chart ds-goal ds-goal--${trackingMethod}`} id={id} aria-labelledby={headingId} style={{ "--habit-color": color } as CSSProperties}>
|
||||
<section className={`ds-habit-chart ds-goal ds-goal--${trackingMethod}`} id={id} aria-labelledby={headingId} style={{ "--habit-color": color, "--habit-tint": /^#[0-9a-f]{6}$/i.test(color) ? `${color}0d` : "var(--ds-surface)" } as CSSProperties}>
|
||||
<div className="ds-goal-body">
|
||||
<div className="ds-goal-overview">
|
||||
<header className="ds-goal-heading">
|
||||
|
||||
Reference in New Issue
Block a user