mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 06:27:25 +00:00
CSS outline fixes for keyboard users.
This commit is contained in:
@@ -63,9 +63,13 @@ h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input:focus,
|
input:focus,
|
||||||
|
textarea:focus,
|
||||||
|
*[role="button"]:focus,
|
||||||
|
button:focus,
|
||||||
|
.maputnik-toolbar-link:focus,
|
||||||
select:focus {
|
select:focus {
|
||||||
color: $color-white !important;
|
color: $color-white;
|
||||||
outline: #8e8e8e auto 1px !important;
|
outline: #8e8e8e auto 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
label:hover {
|
label:hover {
|
||||||
|
|||||||
+22
-4
@@ -124,9 +124,13 @@
|
|||||||
// CHECKBOX
|
// CHECKBOX
|
||||||
.maputnik-checkbox {
|
.maputnik-checkbox {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: 1;
|
||||||
opacity: 0;
|
width: 100%;
|
||||||
width: 50%;
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
outline: none;
|
||||||
|
|
||||||
&-wrapper {
|
&-wrapper {
|
||||||
@extend .maputnik-input;
|
@extend .maputnik-input;
|
||||||
@@ -141,6 +145,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-box {
|
&-box {
|
||||||
|
z-index: 2;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@@ -152,12 +157,26 @@
|
|||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
border-color: $color-gray;
|
border-color: $color-gray;
|
||||||
transition: background-color 0.1s ease-out;
|
transition: background-color 0.1s ease-out;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
// So they fall through to the <input/> beneath
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
@media screen and (prefers-reduced-motion: reduce) {
|
@media screen and (prefers-reduced-motion: reduce) {
|
||||||
transition-duration: 0ms;
|
transition-duration: 0ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
z-index: 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus + &-box {
|
||||||
|
z-index: 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
&-icon {
|
&-icon {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 50%;
|
height: 50%;
|
||||||
@@ -203,7 +222,6 @@
|
|||||||
|
|
||||||
.maputnik-input-block-content {
|
.maputnik-input-block-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.SpecDoc__sdk-support {
|
.SpecDoc__sdk-support {
|
||||||
|
|||||||
@@ -143,6 +143,8 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
// HACK: Remove important
|
||||||
|
outline: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-group-header {
|
&-group-header {
|
||||||
|
|||||||
Reference in New Issue
Block a user