From 895f9c97457d6241c7844cb439c3e843e0e60454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raby=C3=A2=20Raghib?= Date: Mon, 9 Aug 2021 16:44:19 +0100 Subject: [PATCH] include text inputs with no type specified fix #75 --- README.md | 3 +-- index.html | 5 +---- kitchen-sink.html | 1 - src/index.js | 1 + 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 695188d..7dfc5c0 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ All of the basic form elements you use will now have some simple default styles Currently we add basic utility-friendly form styles for the following form element types: +- `input` (with no type specified) - `input[type='text']` - `input[type='password']` - `input[type='email']` @@ -57,8 +58,6 @@ Currently we add basic utility-friendly form styles for the following form eleme - `select[multiple]` - `textarea` -**Note that for text inputs, you must add the `type="text"` attribute for these styles to take effect.** This is a necessary trade-off to avoid relying on the overly greedy `input` selector and unintentionally styling elements we don't have solutions for yet, like `input[type="range"]` for example. - Every element has been normalized/reset to a simple visually consistent style that is easy to customize with utilities, even elements like `` that normally need to be reset with `appearance: none` and customized using custom CSS: ```html diff --git a/index.html b/index.html index 99d11f1..89408d1 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@

Unstyled