Remove cursor override for :disabled buttons (#14061)

Related to https://github.com/tailwindlabs/tailwindcss/issues/8961 and
https://github.com/tailwindlabs/tailwindcss/pull/8962

Before v4, buttons got this CSS in preflight:


9824cb64a0/src/css/preflight.css (L339-L353)

v4 (`next` branch) no longer has `cursor: pointer` in
[preflight.css](2fe2499635/packages/tailwindcss/preflight.css)

This PR removes additional CSS for `:disabled` buttons. It was meant to
undo an override that is no longer present.
This commit is contained in:
Alexander Kachkaev 2024-07-29 15:10:15 +01:00 committed by GitHub
parent 0b7163c727
commit 87c9f32cbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View File

@ -566,10 +566,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
color: color-mix(in srgb, currentColor 50%, transparent);
}
:disabled {
cursor: default;
}
img, svg, video, canvas, audio, iframe, embed, object {
vertical-align: middle;
display: block;

View File

@ -289,14 +289,6 @@ textarea {
color: color-mix(in srgb, currentColor 50%, transparent); /* 2 */
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)