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

update css for control buttons #1125

Merged
merged 1 commit into from
Oct 13, 2022
Merged

update css for control buttons #1125

merged 1 commit into from
Oct 13, 2022

Conversation

chriswhong
Copy link
Contributor

@chriswhong chriswhong commented Oct 13, 2022

There were several CSS classes no longer being applied because their parent .mapbox-gl-draw_ctrl-draw never exists. Instead of .mapbox-gl-draw_ctrl-draw > button to style buttons in the controls, the css is changed to just use .mapbox-gl-draw_ctrl-draw-btn.

This restores a different style for when a button is active (this PR sets the active background color to be the same gray used when hovering a mapbox control button.)

Closes #1124
Fullscreen_10_13_22__11_57_AM

@mourner
Copy link
Member

mourner commented Oct 13, 2022

Please remove the accidental .DS_Store file committed here.

@chriswhong chriswhong merged commit 8f935fd into main Oct 13, 2022
@chriswhong chriswhong deleted the active-control-style branch October 13, 2022 23:27
@omasback
Copy link

Can you release this?

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.

Control buttons do not show active state
3 participants