- From: Nico André via GitHub <sysbot+gh@w3.org>
- Date: Tue, 10 Sep 2024 16:40:03 +0000
- To: public-design-tokens-log@w3.org
nclsndr has just created a new issue for https://github.com/design-tokens/community-group: == Aliasing with layered shadow support == I just noticed an issue with #246 The spec does not describe how aliasing should be supported along the introduction of the optional array-based value. Let's take ```json { "simpleShadow": { "$type": "shadow", "$value": { "color": "#000000", "offsetX": "1px", "offsetY": "1px", "blur": "2px", "spread": "4px" } }, "layeredShadow": { "$type": "shadow", "$value": [ { "color": "#000000", "offsetX": "1px", "offsetY": "1px", "blur": "2px", "spread": "4px" }, { "color": "#CCCCCC", "offsetX": "2px", "offsetY": "2px", "blur": "6px", "spread": "6px" } ] } } ``` Following the current aliasing rules, I guess we allow: ```json { "referenceToSimpleShadow": { "$value": "{simpleShadow}" }, "referenceToLayeredShadow": { "$value": "{layeredShadow}" } } ``` But, do we intend to allow "partial aliasing" within the array value 👇 ? ```json "layeredShadow": { "$type": "shadow", "$value": [ "{simpleShadow}", { "color": "#CCCCCC", "offsetX": "2px", "offsetY": "2px", "blur": "6px", "spread": "6px" } ] } ``` I dunno to what extend this feature might be appealing for users, opinions here? Yet, the current state of having the "shadow" type allowing both object and array based values makes the adoption of the feature almost impossible due to inconsistent spread/merge behaviours required to compute. I described a solution addressing this in #239 - [here](https://github.com/design-tokens/community-group/issues/239#issuecomment-2304100576) and [here](https://github.com/design-tokens/community-group/issues/239#issuecomment-2310570635) I guess that also relates to #241 - where it feels we'd need some simple rules we apply accros types with similar requirements. Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/250 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 10 September 2024 16:40:04 UTC