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 direction prop #2536

Merged
merged 1 commit into from
Feb 18, 2018
Merged

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Feb 18, 2018

Fixes #1897

This PR adds the direction prop to the Dropdown. This enables opening the menu aligned the left or right of the dropdown element. Great for right aligned dropdowns with long items.

It also moves the responsibility of className build up to the DropdownMenu. The DropdownMenu now has props for open and direction.

@levithomason levithomason force-pushed the feat/dropdown-direction branch from 8c984e0 to 1ce6f0a Compare February 18, 2018 23:21
@codecov-io
Copy link

Codecov Report

Merging #2536 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2536      +/-   ##
==========================================
- Coverage   99.74%   99.74%   -0.01%     
==========================================
  Files         160      160              
  Lines        2745     2744       -1     
==========================================
- Hits         2738     2737       -1     
  Misses          7        7
Impacted Files Coverage Δ
src/modules/Dropdown/DropdownMenu.js 100% <100%> (ø) ⬆️
src/modules/Dropdown/Dropdown.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 0c5e2f9...1ce6f0a. Read the comment docs.

@levithomason levithomason merged commit d9b92da into master Feb 18, 2018
@levithomason levithomason deleted the feat/dropdown-direction branch February 26, 2018 07:34
@levithomason
Copy link
Member Author

Released in semantic-ui-react@0.78.3.

Brantron pushed a commit to Brantron/Semantic-UI-React that referenced this pull request Mar 14, 2018
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