diff --git a/README.md b/README.md index adf5f6a..56395c9 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,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/src/index.js b/src/index.js index 1732b57..ce7e8ac 100644 --- a/src/index.js +++ b/src/index.js @@ -17,6 +17,7 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) { { base: [ "[type='text']", + "input:where(:not([type]))", "[type='email']", "[type='url']", "[type='password']",