mirror of
https://github.com/penpot/penpot.git
synced 2026-06-26 01:02:03 +00:00
🐛 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:
parent
038ab5e1f7
commit
1c8d26faaf
@ -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}]))]
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user