-
Notifications
You must be signed in to change notification settings - Fork 97
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(date-textbox): added floating label support #2157
Conversation
🦋 Changeset detectedLatest commit: bc4bbee The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Everything looks good, except there's some weirdness with the option in the docs. It says, "If set then shows this text as the floating label," but entering a string doesn't work:
The docs are clear about setting the range of dates floating labels, but using the directions provided is still unclear about how to set it for one date.
I added it, although I don't think its that big of a problem since this is only affecting people entering information in the storybook. In the code when they actually use it, all strings need to be in quotes anyways. |
Yea, I realize it's just a storybooks docs thing and works well otherwise, but if the docs appear to break when a dev uses those docs in the most intuitive way they know (just enter text) with no other directions otherwise (need to wrap the text in quotes) to help them be able to use the docs, it's far less than ideal. I mean, part of our job is to help improve the DX, and clarity is a big part of that. Is it a big deal? Maybe. Maybe not. But does the change improve the DX? I would say that's categorically a 'yes.' When you consider that the change doesn't impact code in any way and simply provides clarity, I would say it would be wrong NOT to do it. |
94a2a87
to
bc4bbee
Compare
Description
navigator.language
was breaking on the server. Added a guard against that.References
#2035
Screenshots