From 42cc5ba32d4a6993eb3b888dcc08590d9a9a2c47 Mon Sep 17 00:00:00 2001 From: Eyal Azulay Date: Mon, 14 Jun 2021 12:11:53 +0100 Subject: [PATCH] Reduce input selector specificity for display property to prevent overriding user's css. Fixes #78 and #82 --- src/parts/_forms.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/parts/_forms.css b/src/parts/_forms.css index 00584ac..2663efc 100644 --- a/src/parts/_forms.css +++ b/src/parts/_forms.css @@ -9,11 +9,16 @@ input[type='radio'] { cursor: pointer; } -input:not([type='checkbox']):not([type='radio']), +input, select { display: block; } +[type='checkbox'], +[type='radio'] { + display: initial; +} + input, button, textarea,