Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Text Area: update Input component tokens#456

Merged
sai-san merged 8 commits intomasterfrom
add-textarea-tokens
Sep 2, 2021
Merged

Text Area: update Input component tokens#456
sai-san merged 8 commits intomasterfrom
add-textarea-tokens

Conversation

@sai-san
Copy link
Copy Markdown
Contributor

@sai-san sai-san commented Aug 20, 2021

This makes available the missing "read only" state in the input component tokens.

IMPORTANT: Text area and input should be visually aligned. That's why input tokens can be used to style this component.

Issue: T289057

@sai-san sai-san changed the title Create textare.json and missing tokens Add Text Area component tokens Aug 20, 2021
@github-actions
Copy link
Copy Markdown

}
}
},
"readOnly": {
Copy link
Copy Markdown
Contributor Author

@sai-san sai-san Aug 20, 2021

Choose a reason for hiding this comment

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

Please note that read-only fields present a different background color and limited interaction (user cannot modify their value). Still, they can be activated (focused) and hovered, and thus they should display the border styles corresponding to those states.

Comment thread tokens/properties/alias.json Outdated
Comment thread tokens/properties/components/TextArea.json Outdated
This deletes the unnecessary text area tokens and adds the missing readOnly style to the Input tokens
@sai-san sai-san changed the title Add Text Area component tokens Text Area: update Input component tokens Aug 23, 2021
"value": "{color.base.30.value}"
}
},
"field": {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Mental note: I don't think these are proper alias tokens. A general restructuring and renaming of Alias tokens is a must. To whoever is reading this: no worries, components won't be affected 😎

@sai-san sai-san marked this pull request as ready for review September 2, 2021 08:57
Copy link
Copy Markdown
Member

@itamargiv itamargiv left a comment

Choose a reason for hiding this comment

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

Cool beans tried it out and it looked good to me 😎 💯

@sai-san sai-san merged commit 7b5a0a7 into master Sep 2, 2021
@sai-san sai-san deleted the add-textarea-tokens branch September 2, 2021 09:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants