Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(shared-tool-ui): sync shiny text rest color with sibling labels (#19334)

Inneiafc674c13dc9
diff --git a/packages/shared-tool-ui/src/styles.ts b/packages/shared-tool-ui/src/styles.ts
index 61ae35277de..9249ab4d38d 100644
--- a/packages/shared-tool-ui/src/styles.ts
+++ b/packages/shared-tool-ui/src/styles.ts
@@ -65,7 +65,14 @@ export const highlightTextStyles = createStaticStyles(({ css, cssVar }) => {
*/
const shinyToneStyles = createStaticStyles(({ css, cssVar }) => ({
secondary: css`
- --shiny-color: ${cssVar.colorTextSecondary};
+ /* The upstream rest color is a 28% mix of --shiny-color, which reads far
+ * weaker than the static labels next to it. Pin the rest color to the
+ * neighbouring text color and let the sweep peak at full colorText. */
+ &&& {
+ --shiny-color: ${cssVar.colorText};
+
+ color: ${cssVar.colorTextSecondary};
+ }
`,
}));