Skip to content

Commit 6e68d03

Browse files
committed
[bug] add missing input colour focus style
1 parent d3b7040 commit 6e68d03

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

‎css/theme.css‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
box-shadow:000.25em0rgba(var(--accent),0.6),000.5em0rgba(var(--accent),0.4);
2020
}
2121

22-
.theme-input[type="color"]{
22+
.theme-input{
2323
opacity:0;
2424
width:2px;
2525
min-width:2px;
@@ -28,3 +28,10 @@
2828
top:0;
2929
left:0;
3030
}
31+
32+
.theme-input:focus+.theme-label{
33+
background-color:var(--gray-03);
34+
border-bottom-color:rgb(var(--accent));
35+
color:var(--white);
36+
outline:0;
37+
}

‎index.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
</div>
6161
<divclass="head-item mb-3 mb-xl-0">
6262
<formclass="theme">
63+
<inputid="accent-picker" type="color" class="theme-input" value="#ffaa33" tabindex="1">
6364
<labelclass="button mb-0 theme-label" for="accent-picker">
6465
<spanclass="button-text">Accent</span>
6566
</label>
66-
<inputid="accent-picker" type="color" class="theme-input" value="#ffaa33" tabindex="1">
6767
</form>
6868
</div>
6969
</div>
@@ -86,6 +86,7 @@
8686
<scriptsrc="js/state.js"></script>
8787
<scriptsrc="js/data.js"></script>
8888
<scriptsrc="js/links.js"></script>
89+
<scriptsrc="js/version.js"></script>
8990
<scriptsrc="js/init.js"></script>
9091

9192
</html>

0 commit comments

Comments
(0)