Sitelet https://github.com/carbon-design-system/carbon-components-react/pull/1718
Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

feat(DropdownV2): support title and helper text options - #1718

Merged
asudoh merged 5 commits into
carbon-design-system:masterfrom
emyarod:1706-dropdownv2-title-and-helper-text
Jan 22, 2019
Merged

asudoh merged 5 commits into
carbon-design-system:masterfrom
emyarod:1706-dropdownv2-title-and-helper-text

Conversation

@emyarod

@emyarod emyarod commented Jan 8, 2019

Copy link
Copy Markdown
Member

Closes IBM/carbon-components-react#1706

This PR adds optional props to DropdownV2 for a title and helper text.

Changelog

New

  • optional titleText and helperText props

@netlify

netlify Bot commented Jan 8, 2019 •

Copy link
Copy Markdown

Deploy preview for carbon-components-react ready!

Built with commit 35052ec

https://deploy-preview-1718--carbon-components-react.netlify.com

@asudoh asudoh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @emyarod for jumping in!

Comment thread src/components/DropdownV2/DropdownV2.js Outdated
</Downshift>
);
return title || helper ? (
<FormItem>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

While <FormItem> wrapping is something nice to consider in future, I'd be reluctant to change the behavior by title/helper existence. Wondering if we can use a fragment for now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

sure @asudoh, originally this was done to match the markup that we have commonly used throughout the repo but I have changed it to be a fragment now

@emyarod
emyarod force-pushed the 1706-dropdownv2-title-and-helper-text branch from c1d3a98 to 292879e Compare January 11, 2019 17:24

@asudoh asudoh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @emyarod!

@emyarod
emyarod force-pushed the 1706-dropdownv2-title-and-helper-text branch 2 times, most recently from 3d523d0 to 96199bd Compare January 16, 2019 16:24
@emyarod
emyarod force-pushed the 1706-dropdownv2-title-and-helper-text branch from 96199bd to 63b7eef Compare January 21, 2019 15:58

@aledavila aledavila left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@asudoh
asudoh merged commit f37c5a8 into carbon-design-system:master Jan 22, 2019
@carbon-bot

Copy link
Copy Markdown

🎉 This PR is included in version 6.80.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@emyarod
emyarod deleted the 1706-dropdownv2-title-and-helper-text branch January 22, 2019 17:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants