Skip to content

Commit

Permalink
Improved focus state for map buttons
Browse files Browse the repository at this point in the history
This includes:
-Up, down, left, right
-Zoom in and Zoom out
-aerial
-re-centre
  • Loading branch information
lucascumsille authored and dracos committed Aug 23, 2024
1 parent c4a79c5 commit 37b7e0a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions web/cobrands/sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1958,6 +1958,13 @@ html.js #map .noscript {
filter: none !important; // Override OpenLayers PNG handling of the navigation
background-color: #222222;
color: transparent !important;

&:focus {
background-color: #222; // In case there is rule in a cobrand overriding the background of links.
filter: invert(1) !important; // See filter rule for the default state.
outline: 2px solid #fff;
outline-offset: -2px;
}
}

#ns_fms_pan_zoom_panup,
Expand Down Expand Up @@ -2106,6 +2113,14 @@ html.js #map .noscript {
}
}

a:focus {
background-color: #222; // In case there is rule in a cobrand overriding the background of links.
filter: invert(1);
outline: 2px solid #fff;
outline-offset: -2px;
}


.map-layer-toggle {
@include svg-background-image("/cobrands/fixmystreet/images/map-layer-aerial");
}
Expand Down

0 comments on commit 37b7e0a

Please sign in to comment.