summaryrefslogtreecommitdiff
path: root/src/components/Selection.module.css
diff options
context:
space:
mode:
authorHaishan <[email protected]>2020-11-21 23:31:14 +0800
committerHaishan <[email protected]>2020-11-21 23:31:14 +0800
commit10f6e708e5a5b7fe68d30b86aeaf455d1e1d7daa (patch)
treebe1006dc9820658a33efd4487da4b28f0aadb5ea /src/components/Selection.module.css
parent71646e2881ba221788c0ca16d05137ed8f191fae (diff)
chore: improve a11y of traffic chart style selection
Diffstat (limited to 'src/components/Selection.module.css')
-rw-r--r--src/components/Selection.module.css21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/components/Selection.module.css b/src/components/Selection.module.css
index c5181ca..ba47089 100644
--- a/src/components/Selection.module.css
+++ b/src/components/Selection.module.css
@@ -1,16 +1,23 @@
-.root {
+.fieldset {
+ margin: 0;
+ padding: 0;
+ border: 0;
display: flex;
flex-wrap: wrap;
}
-.item {
- flex-grow: 0;
- margin-right: 10px;
- margin-bottom: 10px;
+.input + .cnt {
+ border: 1px solid transparent;
+ border-radius: 8px;
cursor: pointer;
- border: 2px solid transparent;
+ margin-right: 5px;
+ margin-bottom: 5px;
}
-.itemActive {
+.input:focus + .cnt {
+ border-color: #387cec;
+}
+
+.input:checked + .cnt {
border-color: #387cec;
}