accessibility: controls as buttons, not divs
This commit is contained in:
parent
f0cf1f54d0
commit
242f2d6c96
|
@ -156,58 +156,61 @@ body {
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
-webkit-user-select: none; }
|
-webkit-user-select: none; }
|
||||||
|
|
||||||
.reveal .controls div {
|
.reveal .controls button {
|
||||||
|
padding: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
opacity: 0.05;
|
opacity: 0.05;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
background-color: transparent;
|
||||||
border: 12px solid transparent;
|
border: 12px solid transparent;
|
||||||
-webkit-transform: scale(0.9999);
|
-webkit-transform: scale(0.9999);
|
||||||
-ms-transform: scale(0.9999);
|
-ms-transform: scale(0.9999);
|
||||||
transform: scale(0.9999);
|
transform: scale(0.9999);
|
||||||
-webkit-transition: all 0.2s ease;
|
-webkit-transition: all 0.2s ease;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
-webkit-appearance: none;
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
|
||||||
|
|
||||||
.reveal .controls div.enabled {
|
.reveal .controls button.enabled {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
cursor: pointer; }
|
cursor: pointer; }
|
||||||
|
|
||||||
.reveal .controls div.enabled:active {
|
.reveal .controls button.enabled:active {
|
||||||
margin-top: 1px; }
|
margin-top: 1px; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-left {
|
.reveal .controls button.navigate-left {
|
||||||
top: 42px;
|
top: 42px;
|
||||||
border-right-width: 22px;
|
border-right-width: 22px;
|
||||||
border-right-color: #000; }
|
border-right-color: #000; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-left.fragmented {
|
.reveal .controls button.navigate-left.fragmented {
|
||||||
opacity: 0.3; }
|
opacity: 0.3; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-right {
|
.reveal .controls button.navigate-right {
|
||||||
left: 74px;
|
left: 74px;
|
||||||
top: 42px;
|
top: 42px;
|
||||||
border-left-width: 22px;
|
border-left-width: 22px;
|
||||||
border-left-color: #000; }
|
border-left-color: #000; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-right.fragmented {
|
.reveal .controls button.navigate-right.fragmented {
|
||||||
opacity: 0.3; }
|
opacity: 0.3; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-up {
|
.reveal .controls button.navigate-up {
|
||||||
left: 42px;
|
left: 42px;
|
||||||
border-bottom-width: 22px;
|
border-bottom-width: 22px;
|
||||||
border-bottom-color: #000; }
|
border-bottom-color: #000; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-up.fragmented {
|
.reveal .controls button.navigate-up.fragmented {
|
||||||
opacity: 0.3; }
|
opacity: 0.3; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-down {
|
.reveal .controls button.navigate-down {
|
||||||
left: 42px;
|
left: 42px;
|
||||||
top: 74px;
|
top: 74px;
|
||||||
border-top-width: 22px;
|
border-top-width: 22px;
|
||||||
border-top-color: #000; }
|
border-top-color: #000; }
|
||||||
|
|
||||||
.reveal .controls div.navigate-down.fragmented {
|
.reveal .controls button.navigate-down.fragmented {
|
||||||
opacity: 0.3; }
|
opacity: 0.3; }
|
||||||
|
|
||||||
/*********************************************
|
/*********************************************
|
||||||
|
|
|
@ -214,66 +214,68 @@ body {
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .controls div {
|
.reveal .controls button {
|
||||||
|
padding: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
opacity: 0.05;
|
opacity: 0.05;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
background-color: transparent;
|
||||||
border: 12px solid transparent;
|
border: 12px solid transparent;
|
||||||
transform: scale(.9999);
|
transform: scale(.9999);
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
-webkit-appearance: none;
|
||||||
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0 );
|
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .controls div.enabled {
|
.reveal .controls button.enabled {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .controls div.enabled:active {
|
.reveal .controls button.enabled:active {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .controls div.navigate-left {
|
.reveal .controls button.navigate-left {
|
||||||
top: 42px;
|
top: 42px;
|
||||||
|
|
||||||
border-right-width: 22px;
|
border-right-width: 22px;
|
||||||
border-right-color: #000;
|
border-right-color: #000;
|
||||||
}
|
}
|
||||||
.reveal .controls div.navigate-left.fragmented {
|
.reveal .controls button.navigate-left.fragmented {
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .controls div.navigate-right {
|
.reveal .controls button.navigate-right {
|
||||||
left: 74px;
|
left: 74px;
|
||||||
top: 42px;
|
top: 42px;
|
||||||
|
|
||||||
border-left-width: 22px;
|
border-left-width: 22px;
|
||||||
border-left-color: #000;
|
border-left-color: #000;
|
||||||
}
|
}
|
||||||
.reveal .controls div.navigate-right.fragmented {
|
.reveal .controls button.navigate-right.fragmented {
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .controls div.navigate-up {
|
.reveal .controls button.navigate-up {
|
||||||
left: 42px;
|
left: 42px;
|
||||||
|
|
||||||
border-bottom-width: 22px;
|
border-bottom-width: 22px;
|
||||||
border-bottom-color: #000;
|
border-bottom-color: #000;
|
||||||
}
|
}
|
||||||
.reveal .controls div.navigate-up.fragmented {
|
.reveal .controls button.navigate-up.fragmented {
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .controls div.navigate-down {
|
.reveal .controls button.navigate-down {
|
||||||
left: 42px;
|
left: 42px;
|
||||||
top: 74px;
|
top: 74px;
|
||||||
|
|
||||||
border-top-width: 22px;
|
border-top-width: 22px;
|
||||||
border-top-color: #000;
|
border-top-color: #000;
|
||||||
}
|
}
|
||||||
.reveal .controls div.navigate-down.fragmented {
|
.reveal .controls button.navigate-down.fragmented {
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -457,10 +457,10 @@
|
||||||
|
|
||||||
// Arrow controls
|
// Arrow controls
|
||||||
createSingletonNode( dom.wrapper, 'aside', 'controls',
|
createSingletonNode( dom.wrapper, 'aside', 'controls',
|
||||||
'<div class="navigate-left"></div>' +
|
'<button class="navigate-left" aria-label="previous slide"></button>' +
|
||||||
'<div class="navigate-right"></div>' +
|
'<button class="navigate-right" aria-label="next slide"></button>' +
|
||||||
'<div class="navigate-up"></div>' +
|
'<button class="navigate-up" aria-label="above slide"></button>' +
|
||||||
'<div class="navigate-down"></div>' );
|
'<button class="navigate-down" aria-label="below slide"></button>' );
|
||||||
|
|
||||||
// Slide number
|
// Slide number
|
||||||
dom.slideNumber = createSingletonNode( dom.wrapper, 'div', 'slide-number', '' );
|
dom.slideNumber = createSingletonNode( dom.wrapper, 'div', 'slide-number', '' );
|
||||||
|
|
Loading…
Reference in New Issue