Skip to content

Commit 1988836

Browse files
authored
Remove opacity on disabled controls (#630)
1 parent 6ded79f commit 1988836

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/mapml.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,20 @@
107107
text-align: center;
108108
}
109109

110-
.mapml-reload-button:not([aria-disabled="true"]):hover {
110+
.mapml-reload-button:hover,
111+
.mapml-reload-button[aria-disabled="true"] {
111112
background-color: #f4f4f4;
112113
}
113114

114115
.mapml-reload-button[aria-disabled="true"] {
115-
color: #bbb;
116116
cursor: default;
117117
}
118118

119+
button.mapml-button:disabled,
120+
.mapml-button[aria-disabled="true"] {
121+
color: #bbb;
122+
}
123+
119124
.leaflet-control-layers-toggle {
120125
width: 44px !important;
121126
height: 44px !important;
@@ -679,12 +684,6 @@ svg.leaflet-image-layer.leaflet-interactive g {
679684
* layer item controls
680685
*/
681686

682-
button.mapml-button:disabled,
683-
.mapml-button[aria-disabled="true"],
684-
.mapml-layer-item:disabled button.mapml-button {
685-
opacity: .3;
686-
}
687-
688687
.mapml-button-icon {
689688
pointer-events: none;
690689
}

src/mapml/layers/MapMLLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ export var MapMLLayer = L.Layer.extend({
624624
svgSettingsControlIcon.setAttribute('viewBox', '0 0 24 24');
625625
svgSettingsControlIcon.setAttribute('height', '22');
626626
svgSettingsControlIcon.setAttribute('width', '22');
627+
svgSettingsControlIcon.setAttribute('fill', 'currentColor');
627628
settingsControlPath1.setAttribute('d', 'M0 0h24v24H0z');
628629
settingsControlPath1.setAttribute('fill', 'none');
629630
settingsControlPath2.setAttribute('d', 'M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z');

0 commit comments

Comments
 (0)