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 #2174

Closed
wants to merge 1 commit into from
Closed

feat(Dropdown): add direction prop #2174

wants to merge 1 commit into from

Conversation

luisbd
Copy link

@luisbd luisbd commented Oct 6, 2017

This PR adds left directioning support to DropdownMenu.

Closes issue #1897

@codecov-io
Copy link

codecov-io commented Oct 6, 2017

Codecov Report

Merging #2174 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2174      +/-   ##
==========================================
+ Coverage   99.73%   99.76%   +0.03%     
==========================================
  Files         151      151              
  Lines        2622     2606      -16     
==========================================
- Hits         2615     2600      -15     
+ Misses          7        6       -1
Impacted Files Coverage Δ
src/modules/Dropdown/Dropdown.js 100% <ø> (ø) ⬆️
src/modules/Dropdown/DropdownMenu.js 100% <100%> (ø) ⬆️
src/views/Statistic/StatisticLabel.js 100% <0%> (ø) ⬆️
src/views/Card/CardGroup.js 100% <0%> (ø) ⬆️
src/views/Statistic/StatisticGroup.js 100% <0%> (ø) ⬆️
src/elements/Label/LabelGroup.js 100% <0%> (ø) ⬆️
src/views/Statistic/Statistic.js 100% <0%> (ø) ⬆️
src/views/Statistic/StatisticValue.js 100% <0%> (ø) ⬆️
src/elements/Icon/IconGroup.js 100% <0%> (ø) ⬆️
src/modules/Sidebar/Sidebar.js 54.54% <0%> (ø) ⬆️
... and 51 more

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 6e85196...f012b50. Read the comment docs.

@@ -115,6 +115,9 @@ export default class Dropdown extends Component {
])),
]),

/** A dropdown can be positioned to the left */
directionLeft: PropTypes.bool,
Copy link
Member

Choose a reason for hiding this comment

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

Please rename the prop to direction that will accept left as value.

@@ -1298,6 +1302,7 @@ export default class Dropdown extends Component {
useKeyOnly(simple, 'simple'),
useKeyOnly(scrolling, 'scrolling'),
useKeyOnly(upward, 'upward'),
useKeyOnly(directionLeft, 'left'),
Copy link
Member

Choose a reason for hiding this comment

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

Please sort it in alphabetical order, i.e.:

useKeyOrValueAndKey(direction, 'direction'),
useKeyOrValueAndKey(pointing, 'pointing'),

Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

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

@luisbd Thanks for PR 👍 I've left some comments about naming

@layershifter layershifter changed the title feat(DropdownMenu): Add direction support feat(Dropdown): add direction prop Oct 14, 2017
@levithomason
Copy link
Member

This branch has a conflict that needs resolved. Also, let's update docs with the new prop as well, there's DropdownExampleMenuDirection and DropdownExampleMenuDirectionLeft. Not sure if we can do both, but let's see.

@luisbd luisbd closed this Oct 17, 2017
@luisbd luisbd deleted the feat/DropdownMenu branch October 17, 2017 19:49
@krjw
Copy link

krjw commented Jan 21, 2018

What is the status here?

@levithomason
Copy link
Member

See #720, please refrain from status update requests. It makes it difficult to keep up with notifications and responses to bugs/feature requests.

The best way to check on the status is to check the docs, issues, and PRs. We have no work or status available outside of this.

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.

5 participants