mirror of
https://github.com/penpot/penpot.git
synced 2026-10-03 17:26:16 +00:00
* 🐛 Fix token display for multi-selected text layers When multiple text layers share the same fill token, the design panel showed the hex value instead of the token name. type->token-attrs derived token keys from type->editable-attrs, which returns empty for text shapes in the fill group. Fall back to the group's own attrs when editable-attrs is empty. Closes #11924 AI-assisted-by: claude-opus-4-6 * 🐛 Take text token attrs from the group attrs The :text read mode reads values from the group attrs, so its token attrs now come from those attrs too, instead of falling back when the editable attrs are empty. type->token-attrs is restored to its original form. Add regression tests for fill tokens on multiple selections of text shapes, and of a rect mixed with a text. AI-assisted-by: claude-opus-5-5 --------- Co-authored-by: Shreyash Agare <264953665+ShreyashAgare26@users.noreply.github.com> Co-authored-by: Andrey Antukh <niwi@niwi.nz>