16 Commits

Author SHA1 Message Date
Jordan Pittman
e1aafc5df5 Revert "Don't use cursor: pointer for buttons by default (#8962)"
This reverts commit ed3a4f3032b486d8d328089011def785d6572462.
2022-07-29 11:03:28 -04:00
Adam Wathan
ed3a4f3032
Don't use cursor: pointer for buttons by default (#8962)
* Don't use `cursor: pointer` for buttons by default

This is a pretty common expectation but as outlined in in #8961 isn't really right. We considered this a long time ago but it felt too against the grain at the time. These days though very UI-forward applications like [Linear](https://linear.app/) are using the default cursor for buttons and I think this trend will continue as more people become aware that `cursor: pointer` is meant for links.

Let's update our defaults here to help nudge people in this direction and make it more common. If people want to change this in their own apps, it's just a line or two of CSS to add to their projects.

* Update changelog

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2022-07-26 20:55:09 -04:00
Stefan Rumzucker
c3381d90a5
Remove default [hidden] style in preflight (#8248)
* Remove default `[hidden]` style in preflight

* Update snapshots

* Update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-05-02 10:30:06 -04:00
Michaël Gallego
206f1d6df5
Make font weight inherit in preflight (#8078)
* Make font weight inherit

* Update snapshots

* Update changelog

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2022-04-15 11:26:24 -04:00
Jordan Pittman
75ba4e0f8f
Fix preflight border color fallback (#7288) 2022-02-01 11:27:42 -05:00
Jordan Pittman
f2d73b8c3d
Change how we handle defaults (optimized or not) (#6926)
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2022-01-07 11:39:45 -05:00
Jonathan Reinink
808e69b360
Reduce specificity of abbr rule in preflight (#6671) 2021-12-21 10:47:24 -05:00
Robin Malfait
9777562da3
revert reset of li 2021-12-15 13:03:00 +01:00
Jonathan Reinink
00f60e6101 Add "li" to list-style reset 2021-12-14 20:40:20 -05:00
Jonathan Reinink
1fa993f995 Remove extra spaces in preflight 2021-12-14 20:30:08 -05:00
Avi Avinav
f267d91e40
Remove menu element styles (#6213)
* Remove `main` element default styles

* Remove `menu` element default styles
2021-11-29 15:44:34 +01:00
Robin Malfait
56c1646300
Revert "Add ::file-selector-button reset (#6125)"
This reverts commit f94a117500266a8f5e9cfec3b03db81493b1b047.
2021-11-18 17:29:12 +01:00
Robin Malfait
f94a117500
Add ::file-selector-button reset (#6125)
* add ::file-selector-button reset

Otherwise you have to apply `file:border-solid` which you don't have to
do for other elements with borders.

See: https://play.tailwindcss.com/EvtdftCPt6

* update changelog
2021-11-18 14:25:19 +01:00
Robin Malfait
36c880abab
Improve before and after variants (#5820)
* remove unused `withRule`

* ensure all ::before and ::after elements have content

* update --tw-content for the content plugin

* simplify `before` and `after` variants

* update tests, to reflect changes

* make new `format` and `wrap` API's private for now

* allow returning a format string from `addVariant` callback

* add `content: var(--tw-content)` for before/after variants

* update tests to add `content: var(--tw-content)`

* update changelog
2021-10-18 18:11:34 +02:00
Adam Wathan
a7c89c8813
Don't use pointer cursor on disabled buttons by default (#5772) 2021-10-13 06:11:28 -04:00
Robin Malfait
688357fdde
Inline plugins (#5455)
* filter out `..Variant` plugins for the core-plugin-list

* inline all corePlugins

* move preflight css to `./src/css`

* remove individual plugins

* convert export default object to named exports

Note: Normally I would use export function ..., but since we also have
some export let xx = createUtilityPlugin in this file, it means that all
the `export function` declarations would be hoisted and therefore won't
have the correct order anymore.

To fix this, I used `export let xx = () => {}` instead of the usual
`export function xx() {}`

* drop unused `variants()` function

This was required for AOT mode.

* make a few plugins shorter
2021-09-09 09:22:50 -04:00