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): Dropdown passes through attributes #211

Merged
merged 2 commits into from
Jul 22, 2015

Conversation

kennyw12
Copy link
Contributor

Dropdown passes through className and style.
Dropdown merges buttonClassName when provided.
Updates documentation to include buttonClassName.

[Finishes #98913274]

@matt-royal
Copy link
Contributor

(actually @gpleiss): needs tests for DropdownItem.

@gpleiss
Copy link
Contributor

gpleiss commented Jul 20, 2015

Added DropdownItem tests

@@ -159,7 +159,7 @@ var Dropdown = require('pui-react-dropdowns').Dropdown;
This is the basic bootstrap dropdown:

```react_example_table
<UI.Dropdown title='DropDown'>
<UI.Dropdown title='DropDown' buttonClassName="my-btn-class">
Copy link
Contributor

Choose a reason for hiding this comment

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

Two problems with this documentation

  1. We should explain that buttonClassName is optional. It's confusing in this example - it looks like you need to include the buttonClassName property in order for the component to work.

  2. Instead of a made-up class name, we should show an example with a className that creates an obvious appearance difference in the Dropdown - like btn-large (or whatever it is).

Copy link
Contributor

Choose a reason for hiding this comment

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

Turns out we have an example of using buttonClassName lower in the documentation. So we should just remove this hanging buttonClassName, and then this should be ready for merge.

Dropdown passes through className, id and style.
Dropdown merges buttonClassName when provided.
DropdownItem passes through className, id and style.
Updates documentation to include buttonClassName.

[Finishes #98913274]
@gpleiss
Copy link
Contributor

gpleiss commented Jul 21, 2015

Ready for merge 👍

buttonClassName is merged and applied to the button

[Finishes #98913274]
stubbornella added a commit that referenced this pull request Jul 22, 2015
feat(dropdown): Dropdown passes through attributes
@stubbornella stubbornella merged commit 482ef1e into master Jul 22, 2015
@stubbornella stubbornella deleted the passthrough-on-dropdowns branch July 22, 2015 00:18
aks- pushed a commit to aks-/pivotal-ui that referenced this pull request Oct 25, 2016
…placeholder

fix(header): replace "on-site" with "enterprise" in search input placeholder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants