Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(analytics): add status color tokens [MA-2473] #329

Merged
merged 11 commits into from
Aug 9, 2024

Conversation

mihai-peteu
Copy link
Contributor

@mihai-peteu mihai-peteu commented Jul 17, 2024

@mihai-peteu mihai-peteu marked this pull request as ready for review July 24, 2024 15:36
@mihai-peteu
Copy link
Contributor Author

Awaiting Slack approval from UX, but otherwise ready to review.

Copy link
Member

@adamdehaven adamdehaven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple general comments:

  1. In the token descriptions, we shouldn't reference "Analytics" -- these status codes should be generic for "statuses" in general, so can we update the comment fields to read something like this:

    • (before): Analytics unknown 2xx request status color (green.10).
    • (after): Color for an unknown 200-299 range response (green.10)
  2. For the "range tokens" (such as 400s) can we update the comment to indicate it can be used for the whole range? Something like Color to represent the response code range from 400-499 (orange.40)

  3. You will want to update the stylelint plugin to allow the use of the status tokens for a few properties. I'd recommend adding 'status-color' to the following properties:

    • background
    • background-color
    • color
    • fill
    • stroke

@mihai-peteu mihai-peteu enabled auto-merge (squash) August 8, 2024 20:53
@mihai-peteu mihai-peteu merged commit b719a9b into main Aug 9, 2024
4 checks passed
@mihai-peteu mihai-peteu deleted the feat/ma-2473-analytics-status-color-tokens branch August 9, 2024 15:28
kongponents-bot pushed a commit that referenced this pull request Aug 9, 2024
# [1.17.0](v1.16.0...v1.17.0) (2024-08-09)

### Features

* **analytics:** add status color tokens [MA-2473] ([#329](#329)) ([b719a9b](b719a9b))
@kongponents-bot
Copy link
Collaborator

🎉 This PR is included in version 1.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants