generated from vtex-sites/base.store
-
Notifications
You must be signed in to change notification settings - Fork 14
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: Adds new tokens to Select #17
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Lighthouse ReportsHere are the Lighthouse reports of this Pull Request📝 Based on commit c3068a7
|
Preview is readyThis pull request generated a Preview👀 Preview: https://preview-17--gatsby.preview.vtex.app |
3b03df1
to
8e55798
Compare
renatamottam
approved these changes
May 2, 2022
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.
Awesome 👏
2559a73
to
c98598a
Compare
hellofanny
reviewed
May 3, 2022
2eafca2
to
e3644b8
Compare
e3644b8
to
4f7e3b7
Compare
1e1e691
to
eefdf49
Compare
eefdf49
to
9215b9a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
This PR intends to add new tokens to the
Select
component using the Theming Structure.How does it work?
This PR uses local variables to parameterize the
Select
properties, then connects these scoped tokens to the global ones.New global tokens:
None.
New local tokens for
Select
:Default properties:
--fs-select-height
var(--fs-spacing-6)
--fs-select-min-height
var(--fs-control-tap-size)
--fs-select-padding
var(--fs-spacing-1) var(--fs-spacing-5) var(--fs-spacing-1) var(--fs-spacing-2)
--fs-select-text-color
var(--fs-color-link)
--fs-select-border-radius
var(--fs-border-radius-default)
--fs-select-bkg
transparent
--fs-select-bkg-color-focus
var(--fs-color-primary-bkg-light)
--fs-select-bkg-color-hover
var(--fs-select-bkg-color-focus)
--fs-select-transition-timing
var(--fs-transition-timing)
--fs-select-transition-property
var(--fs-transition-property)
--fs-select-transition-function
var(--fs-transition-function)
--fs-select-label-margin-right
var(--fs-spacing-1)
--fs-select-label-color
var(--fs-color-text-light)
--fs-select-icon-right
var(--fs-spacing-2)
--fs-select-icon-color
var(--fs-color-link)
--fs-select-disabled-color
var(--fs-color-disabled-text)
--fs-select-disabled-opacity
1
How to test it?
The
Select
component should look just as it was before these changes.Right now, we have an error on Storybook that displays
Select
icon with the wrong style because it needs to have a wrapper to limit the input container. So it will be done in another bug task.Checklist
Added an entry in the
CHANGELOG.md
at the beginning of its due section. The latest version should come first.Added the PR number with the PR link at the entry in the
CHANGELOG.md
. E.g., New items in thepull_request_template.md
(#12)PR description
Updated the Storybook - if applicable.
Added a label according to the PR goal -
Breaking change
,Enhancement
,Bug
orChore
.Added the component, hook, or pathname in-between backticks (``) - If applicable. E.g.,
ComponentName
component.