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(dropdown): add warn prop #6959

Merged
merged 2 commits into from
Oct 12, 2020

Conversation

janhassel
Copy link
Member

Related: #5918, #6652

This PR adds a warn prop to the Dropdown component to follow the behaviour added to the TextInput and NumberInput (see PRs above).

Changelog

New

  • props warn and warnText for Dropdown
  • props warn and warnText for ListBox

Changed

  • updated PublicAPI snapshot to reflect the new prop

Testing / Reviewing

  • Errors (invalid state) should always overpower warnings
  • Warning message should appear instead of helper text
  • Verify visual style with the already implemented warn prop of TextInput and NumberInput

@netlify
Copy link

netlify bot commented Oct 2, 2020

Deploy preview for carbon-elements ready!

Built with commit abaf61a

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

@netlify
Copy link

netlify bot commented Oct 2, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit abaf61a

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

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.

@janhassel looks good!

@kodiakhq kodiakhq bot merged commit ee6de8d into carbon-design-system:master Oct 12, 2020
@janhassel janhassel deleted the dropdown-warning branch October 12, 2020 17:11
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.

None yet

3 participants