]> git.ardis.lu - ens2hex/commitdiff
Adjust upload box styling
authorArdis Lu <ardisglu@gmail.com>
Tue, 4 Oct 2022 07:03:36 +0000 (00:03 -0700)
committerArdis Lu <ardisglu@gmail.com>
Tue, 4 Oct 2022 07:03:36 +0000 (00:03 -0700)
Should show outline on inner input focus for accessibility

index.html

index 4a1064400d30f0d2d37c3dc5c5032407aa1c40e7..4239aa56cb89a905d7d1ebc72575415145fba049 100644 (file)
@@ -84,7 +84,7 @@
       align-items: center;
       padding: 48px 16px;
       border: 2px dashed var(--primary);
-      border-radius: 20px;
+      border-radius: 12px;
     }
 
     .upload-box:hover,
       cursor: pointer;
     }
 
+    .upload-box:has(input:focus) {
+      outline: -webkit-focus-ring-color auto 2px;
+    }
+
     .upload-box input {
       opacity: 0;
       width: 0.1px;
This page took 0.037533 seconds and 4 git commands to generate.