diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ecbc5e7..ceda3e1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,72 @@ # Changelog +## 2.6.0 + +**Visual change for every form.** Single-line inputs are now 2px shorter, and focus styles are +thinner and consistent. Check forms that set their own input heights or focus styles. + +### Changed: single-line controls are 36px, matching Button + +Inputs had no fixed height. `py-2` + `leading-5` + a 1px border made them 38px, while the default +`Button` is `h-9` (36px), so an input next to a button sat 2px taller. The height also changed +depending on whether `@tailwindcss/forms` was loaded and in which order: 22–24px without it, and +42px when a consumer's forms styles loaded after plenum's. + +These are now a fixed `h-9` (36px) with `py-0` and the text vertically centred, whatever CSS is loaded: + +| Control | Before | After | +| --- | --- | --- | +| `InputField` (and so `TextInput`, including `date` / `datetime-local`) | 38px | 36px | +| `FormInputWithAddons`, `AnimatedLabelInput`, `AnimatedFormInputWithAddons` | 38px | 36px | +| `NestedInputButton` (the add-on button inside the above) | 38px | 36px | +| `TextInputSelect`: input and native ``**, **`Combobox`** and **`NestedInputButton`** used + `focus:ring-1 focus:ring-purple-500` plus a purple border. They now use the same 1px `violet-700` + border. `NestedInputButton` and the `DropdownWithMultiSelect` trigger show it for keyboard focus + only (`focus-visible`). +- **Error and readonly states keep their red / gray border on focus.** Previously `Select` and + `Combobox` in error turned purple on focus. `TextInput` and `TextInputSelect` now also set + `aria-invalid="true"` on the input when `isError` is set. + +### Changed: button and toggle focus rings show for keyboard focus only + +`Button` (both the `