Re: [community-group] Proposal: add $deprecated property (#255)

To confirm, there is neither a necessity nor a spec-defined way to confirm
or extract an alternate token suggestion inside the deprecated tag,
toolmakers can make their own assumptions on if and how to programmatically
determine it?

On Fri, 1 Nov 2024 at 01:31, Kaelig Deloumeau-Prigent <
***@***.***> wrote:

> ***@***.**** commented on this pull request.
> ------------------------------
>
> In technical-reports/format/groups.md
> <https://github.com/design-tokens/community-group/pull/255#discussion_r1825099010>
> :
>
> > +  "Button": {
> +    "$deprecated": "Please use {action.*} tokens instead.",
> +    "Foreground": { "$value": "#202020", "$type": "color" },
> +    "Background": { "$value": "#ffffff", "$type": "color" }
> +  }
> +}
> +```
> +
> +</aside>
> +
> +In the context of a group, adding `$deprecated` will apply to all tokens within that group, unless a token explicitly sets a value of `false`. Any value provided by a token will override the group default.
> +
> +| Value    | Explanation                                                 |
> +| :------- | :---------------------------------------------------------- |
> +| `true`   | This token is deprecated (no explanation provided).         |
> +| `String` | This token is deprecated AND this is an explanation.        |
>
> Perhaps it would be useful to mention that tool makers MAY augment the
> string when it contains aliases such as the one given as an example:
>
> Please use {button.activeBorder} instead
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/design-tokens/community-group/pull/255#pullrequestreview-2408972059>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AEKS36AFBRW2TZODLTREIVLZ6KEBLAVCNFSM6AAAAABQR27HUKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMBYHE3TEMBVHE>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>


-- 
GitHub Notification of comment by nesquarx
Please view or discuss this issue at https://github.com/design-tokens/community-group/pull/255#issuecomment-2452481670 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 1 November 2024 19:40:23 UTC