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

fix(DropdownItem): add className to element shorthands #1256

Merged
merged 3 commits into from
Feb 22, 2017

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Jan 30, 2017

When passing elements to the text or description prop for a DropdownItem, the appropriate className values were not added. The className was only added for primitive value shorthand.

This PR moves the className values to the defaultProps callback for each shorthand so they are always added to all resulting shorthand elements.

@codecov-io
Copy link

codecov-io commented Jan 30, 2017

Codecov Report

Merging #1256 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1256      +/-   ##
==========================================
+ Coverage   99.74%   99.74%   +<.01%     
==========================================
  Files         140      140              
  Lines        2392     2393       +1     
==========================================
+ Hits         2386     2387       +1     
  Misses          6        6
Impacted Files Coverage Δ
src/modules/Dropdown/DropdownItem.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f83015...7e4c956. Read the comment docs.

@levithomason levithomason force-pushed the fix/dropdown-item-shorthand branch from 6d732ea to 7e4c956 Compare February 21, 2017 01:15
@levithomason levithomason merged commit 7a0c77d into master Feb 22, 2017
@levithomason levithomason deleted the fix/dropdown-item-shorthand branch February 22, 2017 00:08
@levithomason
Copy link
Member Author

Released in [email protected].

harel pushed a commit to harel/Semantic-UI-React that referenced this pull request Feb 25, 2017
…1256)

* fix(DropdownItem): add className to element shorthands

* docs(DropdownExampleDescription): fix markup

* test(Dropdown): fix shorthand tests
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.

2 participants