Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
##1.0.4
## 1.0.5

* Add `role="button"` to the control, and lowercase "fullscreen" in the `title`
attribute to align with Leaflet's core controls.

## 1.0.4

* reinstated backward compatibility with `fullscreenOptions`

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ To change fullscreen control text:
``` js
map.addControl(new L.Control.Fullscreen({
title: {
'false': 'View Fullscreen',
'true': 'Exit Fullscreen'
'false': 'View fullscreen',
'true': 'Exit fullscreen'
}
}));
```
Expand Down
5 changes: 3 additions & 2 deletions dist/Leaflet.fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
options: {
position: 'topleft',
title: {
'false': 'View Fullscreen',
'true': 'Exit Fullscreen'
'false': 'View fullscreen',
'true': 'Exit fullscreen'
}
},

Expand All @@ -27,6 +27,7 @@

this.link = L.DomUtil.create('a', 'leaflet-control-fullscreen-button leaflet-bar-part', container);
this.link.href = '#';
this.link.setAttribute('role', 'button');

this._map = map;
this._map.on('fullscreenchange', this._toggleTitle, this);
Expand Down
2 changes: 1 addition & 1 deletion dist/Leaflet.fullscreen.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runette/leaflet-fullscreen",
"version": "1.0.4",
"version": "1.0.5",
"description": "A fullscreen control for Leaflet",
"main": "dist/Leaflet.fullscreen.js",
"directories": {
Expand Down