Skip to content

Commit 622d680

Browse files
Mention outline changes in upgrade guide (#2114)
Closes tailwindlabs/tailwindcss#15861
1 parent f87f6c5 commit 622d680

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/docs/upgrade-guide.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,16 @@ To update your project for these changes, replace all the v3 utilities with thei
337337

338338
#### Renamed outline utility
339339

340+
The `outline` utility now sets `outline-width: 1px` by default to be more consistent with border and ring utilities. Furthermore all `outline-<number>` utilities default `outline-style` to `solid`, omitting the need to combine them with `outline`:
341+
342+
```html
343+
<!-- [!code filename:HTML] -->
344+
<!-- [!code --:2] -->
345+
<input class="outline outline-2" />
346+
<!-- [!code ++:2] -->
347+
<input class="outline-2" />
348+
```
349+
340350
The `outline-none` utility previously didn't actually set `outline-style: none`, and instead set an invisible outline that would still show up in forced colors mode for accessibility reasons.
341351

342352
To make this more clear we've renamed this utility to `outline-hidden` and added a new `outline-none` utility that actually sets `outline-style: none`.

0 commit comments

Comments
 (0)