Use minus character instead of hyphen in the zoom control (#5501)
* 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
This commit is contained in:
parent
652946947d
commit
60e1965e33
8
dist/leaflet.css
vendored
8
dist/leaflet.css
vendored
@ -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 */
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user