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

[Popover] Add a marginThreshold property #8815

Merged
merged 3 commits into from Oct 24, 2017

Conversation

eyn
Copy link
Contributor

@eyn eyn commented Oct 23, 2017

Allows users to choose how large the marginThreshold is and have popovers closer than 16px from the edge of the screen if they so wish.

Should we set default to 2 theme units rather than 16?

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

I like the idea 👍

@@ -115,6 +116,10 @@ export type Props = {
*/
getContentAnchorEl?: Function,
/**
* Specifies how close to the edge of the window the popover can appear
Copy link
Member

Choose a reason for hiding this comment

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

.

@oliviertassinari oliviertassinari added the component: Popover The React component. label Oct 23, 2017
@oliviertassinari
Copy link
Member

I'm about to make a release. Sorry, this PR will be in the next train 🚋 .

@oliviertassinari oliviertassinari changed the title [Popover] make marginThreshold a property [Popover] Make marginThreshold a property Oct 24, 2017
@oliviertassinari oliviertassinari changed the title [Popover] Make marginThreshold a property [Popover] Add a marginThreshold property Oct 24, 2017
@oliviertassinari oliviertassinari added the new feature New feature or request label Oct 24, 2017
@oliviertassinari oliviertassinari merged commit d2b7b08 into mui:v1-beta Oct 24, 2017
@oliviertassinari
Copy link
Member

oliviertassinari commented Oct 24, 2017

@eyn Thank you!

the-noob pushed a commit to the-noob/material-ui that referenced this pull request Nov 17, 2017
[Popover] Add a marginThreshold property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Popover The React component. new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants