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

fix: pass labelStyleProps down to FormLabel #33

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

joaoviana
Copy link
Contributor

@joaoviana joaoviana commented Mar 27, 2021

Related to this issue: #24

@koolamusic updated snapshots, anything else I'm missing? 😄

@joaoviana joaoviana force-pushed the allow-label-style-props branch 2 times, most recently from 486f75e to 412fbcf Compare March 27, 2021 17:50
@koolamusic
Copy link
Owner

This looks good, thanks for sending this. I will review and respond shortly.

Copy link
Owner

@koolamusic koolamusic left a comment

Choose a reason for hiding this comment

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

@joaoviana please let me know your thoughts on this.

src/index.tsx Outdated
@@ -191,7 +191,7 @@ export const CUIAutoComplete = <T extends Item>(

return (
<Stack>
<FormLabel {...getLabelProps({})}>{label}</FormLabel>
<FormLabel {...labelStyleProps} {...getLabelProps({})}>{label}</FormLabel>
Copy link
Owner

Choose a reason for hiding this comment

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

Do you think we can do something like :
<FormLabel {...labelStyleProps, ...getLabelProps({})}>{label}</FormLabel>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so! thanks for the suggestion 😄

@joaoviana joaoviana force-pushed the allow-label-style-props branch from 412fbcf to af6a2e6 Compare March 29, 2021 11:42
@joaoviana
Copy link
Contributor Author

done @koolamusic, LMK if you prefer this approach 👍

@koolamusic
Copy link
Owner

Looks good to me. Thanks for making this happen

@koolamusic koolamusic merged commit a8a1e8f into koolamusic:master Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants