- From: Ryan Johnson via GitHub <sysbot+gh@w3.org>
- Date: Tue, 08 Nov 2022 00:33:28 +0000
- To: public-design-tokens-log@w3.org
I agree with concatenating `$tags` as you walk down the JSON tree.
This definition...
```json5
{
"color": {
"$tags": ["global"],
"brand": {
"$tags": ["marketing", "company"],
"primary": {
"400": {
"$value": "#7cf88b",
"$type": "color",
"$tags": ["green", "logo"]
}
}
}
}
}
```
Would resolve as...
```json5
{
"color.brand.primary.400": {
"$value": "#7cf88b",
"$type": "color",
/*
resolved = [
...color.$tags,
...color.brand.$tags,
...color.brand.primary.400.$tags
]
*/
"$tags": ["global", "marketing", "company", "green", "logo"]
}
}
```
--
GitHub Notification of comment by CITguy
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/109#issuecomment-1306424506 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 8 November 2022 00:33:33 UTC