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 select function to button #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

scaddenp
Copy link

This simple addition added select and unselect method to buttons which add or remove a '.selected' class to the button. This is useful when controls activate a new mode (eg drawing) which captures mouse actions until deselected. A user can add a style like:
.leaflet-bar button.selected{
background-color: #666666 !important;
}

to style the button. I considered putting a default into the easybutton.css but though better of it.

@scaddenp scaddenp closed this Sep 22, 2021
@scaddenp scaddenp reopened this Sep 22, 2021
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.

1 participant