-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add new token for disabled-text #195 #196
base: master
Are you sure you want to change the base?
Conversation
This commit creates a new semantic token specifically to be used in UIs where the content of an interaction is to appear as disabled to the end user. This new token may be used in cases where there is unavailable features in the UI that are not specifically interactive elements. On branch dsande/disabledText/195 Changes to be committed: modified: src/color/text.json
Reviewer's Guide by SourceryThis PR introduces a new semantic token for disabled text and updates existing disabled UI text colors. The implementation adds a new 'disabled' token group in text.json and modifies the existing UI disabled text color value to maintain consistency. Entity Relationship Diagram for text.json changeserDiagram
TEXT_JSON {
string default_value
string public
string default
string usage
string wcag
boolean deprecated
}
TEXT_JSON ||--o{ DISABLED : contains
DISABLED {
string value
boolean public
boolean default
string usage
string wcag
boolean deprecated
}
TEXT_JSON ||--o{ UI : contains
UI {
string value
boolean public
boolean default
string usage
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @blackfalcon - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please specify WCAG contrast ratios instead of marking as 'n/a' since this involves text visibility
- Consider documenting the relationship between 'text.disabled' and 'text.ui.disabled' tokens since they share the same color value
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
"disabled": { | ||
"default": { | ||
"value": "{color.base.gray.500.value}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Consider consolidating the duplicate disabled text color definitions
There are now two tokens for disabled text that use the same value - the new top-level 'disabled.default' and 'ui.disabled.default'. Consider either making one reference the other or consolidating them if there isn't a strong semantic difference between UI and non-UI disabled states.
"disabled": {
"default": {
"value": "{ui.disabled.default.value}",
Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Resolves: #195
Summary:
This commit creates a new semantic token specifically to be used in UIs where the content of an interaction is to appear as disabled to the end user. This new token may be used in cases where there is unavailable features in the UI that are not specifically interactive elements.
On branch dsande/disabledText/195
Changes to be committed:
modified: src/color/text.json
Type of change:
Please delete options that are not relevant.
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Add a new semantic token for disabled text color to enhance UI design by providing a distinct color for non-interactive elements. Update the existing disabled UI text color to improve visual consistency.
New Features:
Enhancements: