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

Hide attribution container if empty so as not to show in compact maps #6042

Merged
merged 2 commits into from
Jan 24, 2018

Conversation

lbud
Copy link
Contributor

@lbud lbud commented Jan 23, 2018

Attribution is "hidden" in maps that don't have attribution (styles and tiles not hosted by Mapbox or otherwise requiring attribution) by virtue of having no text and therefore zero dimensions, but on compact maps the ℹ️ button was showing. This PR adds a class to hide empty attribution containers in either case.

Fixes #6037.

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • manually test the debug page

@lbud lbud requested a review from mollymerp January 23, 2018 22:34
Copy link
Contributor

@mollymerp mollymerp left a comment

Choose a reason for hiding this comment

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

👌 thanks @lbud !

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