Skip to content

Commit

Permalink
Use minus character instead of hyphen in the zoom control (Leaflet#5501)
Browse files Browse the repository at this point in the history
* Using proper minus character in the zoom control which means CSS workaround isn't needed

* Using HTML escaping of unicode minus character for added browser support
  • Loading branch information
damianmoore authored and perliedman committed Jun 4, 2017
1 parent 6529469 commit 60e1965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions dist/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,10 @@
font: bold 18px 'Lucida Console', Monaco, monospace;
text-indent: 1px;
}
.leaflet-control-zoom-out {
font-size: 20px;
}

.leaflet-touch .leaflet-control-zoom-in {
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
font-size: 22px;
}
.leaflet-touch .leaflet-control-zoom-out {
font-size: 24px;
}


/* layers control */
Expand Down
4 changes: 2 additions & 2 deletions src/control/Control.Zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export var Zoom = Control.extend({
// The title set on the 'zoom in' button.
zoomInTitle: 'Zoom in',

// @option zoomOutText: String = '-'
// @option zoomOutText: String = '−'
// The text set on the 'zoom out' button.
zoomOutText: '-',
zoomOutText: '−',

// @option zoomOutTitle: String = 'Zoom out'
// The title set on the 'zoom out' button.
Expand Down

0 comments on commit 60e1965

Please sign in to comment.