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

feat(date-picker): add warning styles, style audit fixes #7368

Merged
merged 2 commits into from
Dec 5, 2020

Conversation

tw15egan
Copy link
Collaborator

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 of DatePicker

Changelog

New

  • warn prop was added to DatePicker
  • invalid and warn now use the proper icons when active
  • Styles associated with the error states and the icons
  • bx--date-picker-input__wrapper--invalid and bx--date-picker-input__wrapper--warn added as wrapper classes to allow better specificity in our invalid styles in form.scss

Changed

  • Fixed an issue with warning icons that were targeting a [data-icon-path='inner-path'] that no longer exists
  • simple DatePicker no longer has a min-width but will have two preset widths to handle the default state and error state.

Removed

  • extraneous styles

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 a TextInput.

@tw15egan tw15egan requested a review from a team as a code owner November 30, 2020 20:24
@netlify
Copy link

netlify bot commented Nov 30, 2020

Deploy preview for carbon-elements ready!

Built with commit 0035765

https://deploy-preview-7368--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Nov 30, 2020

Deploy preview for carbon-components-react ready!

Built with commit 0035765

https://deploy-preview-7368--carbon-components-react.netlify.app

@netlify
Copy link

netlify bot commented Nov 30, 2020

✔️ 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

Copy link
Member

@aagonzales aagonzales left a 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!

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

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

@tw15egan looks good! :)

@netlify
Copy link

netlify bot commented Nov 30, 2020

✔️ 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

@joshblack joshblack merged commit e11fdf2 into carbon-design-system:master Dec 5, 2020
@tw15egan tw15egan deleted the datepicker-audit branch April 28, 2021 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[date picker] audit bugs
5 participants