-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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-picker): add warning styles, style audit fixes #7368
feat(date-picker): add warning styles, style audit fixes #7368
Conversation
0035765
to
7672e3d
Compare
Deploy preview for carbon-elements ready! Built with commit 0035765 |
Deploy preview for carbon-components-react ready! Built with commit 0035765 https://deploy-preview-7368--carbon-components-react.netlify.app |
✔️ Deploy preview for carbon-elements ready! 🔨 Explore the source changes: ad7152a 🔍 Inspect the deploy logs: https://app.netlify.com/sites/carbon-elements/deploys/5fca74cadf077c0007f81c04 😎 Browse the preview: https://deploy-preview-7368--carbon-elements.netlify.app |
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.
Looks good to me!
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.
@tw15egan looks good! :)
✔️ Deploy preview for carbon-components-react ready! 🔨 Explore the source changes: ad7152a 🔍 Inspect the deploy logs: https://app.netlify.com/sites/carbon-components-react/deploys/5fca74ca961ac3000734ba66 😎 Browse the preview: https://deploy-preview-7368--carbon-components-react.netlify.app |
Closes #7334
Adds in the
warn
prop to align with other form components. Also fixes various style bugs, as well as updates the Storybook to view all props on each variation ofDatePicker
Changelog
New
warn
prop was added toDatePicker
invalid
andwarn
now use the proper icons when activebx--date-picker-input__wrapper--invalid
andbx--date-picker-input__wrapper--warn
added as wrapper classes to allow better specificity in ourinvalid
styles inform.scss
Changed
warning
icons that were targeting a[data-icon-path='inner-path']
that no longer existssimple
DatePicker no longer has amin-width
but will have two preset widths to handle the default state and error state.Removed
Testing / Reviewing
Check the playground tab and ensure the 3 variations of
DatePicker
look correct in all states.Keep in mind, a lot of extra styles were added to accommodate
simple
variation with all the wrapper classes.simple
DatePicker
almost seems like it could just be deprecated, as it is essentially just aTextInput
.