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 support for "maxWidth" to the Popup Component #287

Merged
merged 2 commits into from
Apr 26, 2020

Conversation

WesWedding
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The MapboxGL's Popup has a maxWidth option that allows you to override the default '240px' max-width that gets set on the popup's DOM element. It would be more convenient to use this built-in API than to resort to things like sprinkling !important in your CSS.

Describe the solution you'd like
Add support for maxWidth so that the following is possible...

...
<Popup 
  latitude={0}
  longitude={0}
  maxWidth={'none'}>
    Content
</Popup>

@stepankuzmin
Copy link
Member

Thanks, @WesWedding!

@stepankuzmin stepankuzmin merged commit c6101c1 into urbica:master Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants