Add native color picker option (fix for firefox) (#16729)

This commit is contained in:
Paul Bottein 2023-06-01 18:31:18 +02:00 committed by GitHub
parent b63a32109e
commit 928b4e6f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,6 +603,7 @@ class LightColorPicker extends LitElement {
input[type="color"] { input[type="color"] {
appearance: none; appearance: none;
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none;
border: none; border: none;
outline: none; outline: none;
display: block; display: block;
@ -628,6 +629,10 @@ class LightColorPicker extends LitElement {
background: none; background: none;
} }
input[type="color"]::-moz-color-swatch {
display: none;
}
input[type="color"]::-webkit-color-swatch { input[type="color"]::-webkit-color-swatch {
border: none; border: none;
} }