🐛 Fix swapped tooltip messages for token deletion states (#10316)

The tooltip messages for 'not-active' and 'has-errors' conditions
were swapped in both the typography row and color row components.

When a token is deleted (not-active), the tooltip should show the
'deleted-token' message, and when a referenced token has errors
(has-errors), it should show the 'not-active-token' message.

Fixes #10296
Fixes #10299

Signed-off-by: 0xRapzz <oxrapzz@rapzzclip.win>
Co-authored-by: 0xRapzz <oxrapzz@proton.me>
This commit is contained in:
0xRapzz 2026-06-19 13:18:25 +07:00 committed by GitHub
parent 038ab5e1f7
commit 1c8d26faaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -39,9 +39,9 @@
tooltip-content (cond
not-active
(tr "not-active-token.no-name")
has-errors
(tr "options.deleted-token")
has-errors
(tr "not-active-token.no-name")
:else
(mf/html [:> to/resolved-value-tooltip* {:token-name token-name
:resolved-value resolved-value}]))]

View File

@ -98,16 +98,16 @@
token-name-ref (mf/use-ref nil)
swatch-tooltip-content (cond
not-active
(tr "not-active-token.no-name")
has-errors
(tr "options.deleted-token")
has-errors
(tr "not-active-token.no-name")
:else
(tr "workspace.tokens.resolved-value" resolved))
name-tooltip-content (cond
not-active
(tr "not-active-token.no-name")
has-errors
(tr "options.deleted-token")
has-errors
(tr "not-active-token.no-name")
:else
#(mf/html
[:div