-
Notifications
You must be signed in to change notification settings - Fork 673
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(components): Add labelPosition
prop on Switch
#2137
feat(components): Add labelPosition
prop on Switch
#2137
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/systemui/theme-ui/EyeMg3oSXGWpUZ1Fa9ke7uSGdzMK |
For issue #2124 Weekend, right? |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d70d526:
|
labelPosition
for Switch
.labelPosition
prop on Switch
Well, I find that you like to use package name rather than the component name... I will fix it with force push. (I am not sure that it is a good idea...) I will go to sleep. See you tomorrow. |
34be2db
to
5159bbd
Compare
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.
OK! I will work on it tonight! |
By the way, I find that if running I think we need to commit with those files which is formatted. |
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.
Thanks for contributing this, sorry for the long wait! Suggested some docs improvements but the code functionality looks good.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
If it is OK, please tell me to rebase the git history to get more clear history. |
Hi @PeterlitsZo @hasparus @lachlanjc , is there an update on this PR? We're currently experiencing this issue in our project with the Switch/ Label stye props being only targetable for the |
@chrislombaard Unbelievable that this PR is still not merged. I will deal with it in this weekend (maybe this weekend :) ). |
Wait one more week... |
|
b4a4efc
to
d70d526
Compare
-> Move to new PR: #2452 |
Switch has a prop
label
to set its label. And its position isdefaultly at the end. To put the label at the start of
Switch
ishard.
So I add
labelPosition
, usinggap: 2
instead of themr: 2
to makesure that those children's space is right.
By the way, I move those inner components outside, to make those code
more clear than before. I hope that works.