AlaskaAirlines / AuroDesignTokens

Abstract UI atomic values to support the Auro Design System.
https://auro.alaskaair.com/getting-started/developers/design-tokens
Apache License 2.0
19 stars 7 forks source link

The `color` tokens do not have a `reference` object within it's data #96

Closed jordanjones243 closed 1 year ago

jordanjones243 commented 1 year ago

Describe the bug

None of the color tokens have a reference object within their JSON data, causing an error when trying to build out the list of deprecated tokens.

To Reproduce

Steps to reproduce the behavior:

  1. Use a local version of the docsite
  2. Update with this command npm i @alaskaairux/design-tokens@3.12.1
  3. Run the server locally
  4. Go to http://localhost:3000/getting-started/developers/design-tokens/deprecated
  5. See the error

Expected behavior

The deprecated tokens list should be generated on the docsite.

Screenshot

This is an example of what the deprecated token data should look like (not the reference and version data).

Screen Shot 2023-02-06 at 9 47 00 AM Screen Shot 2023-02-06 at 9 48 52 AM

Additional context

This bug was discovered through investigative work stemming from this issue:

The color tokens are also missing a version object, but the absence of this object does not produce an error.