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

Add yAxis=middle support to Popover #7038

Merged
merged 2 commits into from
Jun 7, 2018
Merged

Conversation

noisysocks
Copy link
Member

Add yAxis=middle support to the Popover component so that we can use it to implement NUX tips.

I split this out of #6631 because it was becoming too large of a PR.

To test:

You could find an existing <Popover> and set its position to e.g. "middle right".

Alternatively, just check out the try/nux-tips branch which has these changes and test the New User Guide.

Add yAxis=middle support to the Popover component so that we can use it
to implement NUX tips.
@noisysocks noisysocks added [Type] Enhancement A suggestion for improvement. [Feature] UI Components Impacts or related to the UI component system labels May 31, 2018
@@ -220,7 +221,7 @@ class Popover extends Component {
'is-' + xAxis,
{
'is-mobile': isMobile,
'no-arrow': noArrow,
'no-arrow': noArrow || ( xAxis === 'center' && yAxis === 'middle' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should clarify the possible values in the README :)

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@noisysocks noisysocks merged commit be00077 into master Jun 7, 2018
@noisysocks
Copy link
Member Author

Thanks, Riad!

@noisysocks noisysocks added this to the 3.1 milestone Jun 7, 2018
@noisysocks noisysocks deleted the add/yaxis-middle-to-popover branch June 7, 2018 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] UI Components Impacts or related to the UI component system [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants