Skip to content

Conversation

@olaf-k
Copy link
Member

@olaf-k olaf-k commented Jan 16, 2026

No description provided.

@olaf-k olaf-k requested a review from R-Bower as a code owner January 16, 2026 12:00
Signed-off-by: Olaf Kappes <okappes@qti.qualcomm.com>
@olaf-k olaf-k force-pushed the olaf/tag-color-emphasis branch from 4404222 to 099c7e1 Compare January 16, 2026 14:38
Copy link
Contributor

@R-Bower R-Bower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one question about colors


&:active {
background:
linear-gradient(var(--color-interactive-background-ghost-pressed) 0 0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused by the linear gradient. Why use this instead of a static color?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah! that's a point I wanted to address with Steve on Monday.
it looks like Figma is stacking the base color with background/hover rather than using a dedicated one:
image
(blue medium is used for the border, forget about it)
so I transposed that mechanism the best I could (could've probably used color-mix too) in the meantime.

Copy link
Contributor

@R-Bower R-Bower Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah, I see now. Here's the Figma CSS for the blue emphasis hover state (I removed the var fallbacks for clarity)

background: 
  linear-gradient(
    0deg, var(--color-interactive-background-ghost-hover) 0%, 
    var(--color-interactive-background-ghost-hover) 100%),
    var(--color-category-blue-subtle)
  );

This continues for the other colors, but only the last var changes. So we could declare this linear gradient once and swap out the last color based on the emphasis.

&:hover {
background: 
  linear-gradient(
    0deg, var(--color-interactive-background-ghost-hover) 0%, 
    var(--color-interactive-background-ghost-hover) 100%),
    var(--hover-bg)
  );
}

&[data-emphasis="blue"] {
  --hover-bg: var(--color-category-blue-subtle);
}

&[data-emphasis="green"] {
  --hover-bg: var(--color-category-green-subtle);
}

/* etc... */

@R-Bower R-Bower self-requested a review January 18, 2026 07:07
Copy link
Contributor

@R-Bower R-Bower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit: see my previous review. Accidentally hit "Approve"

@olaf-k olaf-k marked this pull request as draft January 19, 2026 11:40
@olaf-k olaf-k changed the title feat(tag): add color emphasis [WIP] feat(tag): add color emphasis Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants