Parcourir la source

fix: do not apply user-select none to inputs

Safari will prevent proper input behavior when user-select none
is applied. It prevents such actions as putting in a room lock
password or setting a room lock password. Other browsers allow
selecting on inputs while user-select is none.
j8
Leonard Kim il y a 8 ans
Parent
révision
283140d16a
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6
    1
      css/_base.scss

+ 6
- 1
css/_base.scss Voir le fichier

@@ -1,4 +1,9 @@
1
-* {
1
+/**
2
+ * Safari will limit input in input elements to one character when user-select
3
+ * none is applied. Other browsers already support selecting within inputs while
4
+ * user-select is none. As such, disallow user-select except on inputs.
5
+ */
6
+*:not(input) {
2 7
     -webkit-user-select: none;
3 8
     user-select: none;
4 9
 }

Chargement…
Annuler
Enregistrer