Skip to content

Commit 87c9f32

Browse files
authored
Remove cursor override for :disabled buttons (#14061)
Related to #8961 and #8962 Before v4, buttons got this CSS in preflight: https://github.com/tailwindlabs/tailwindcss/blob/9824cb64a03afaa405e184cb31003c8a1efafaa7/src/css/preflight.css#L339-L353 v4 (`next` branch) no longer has `cursor: pointer` in [preflight.css](https://github.com/tailwindlabs/tailwindcss/blob/2fe249963583e436961adc59cf9988af454e3da5/packages/tailwindcss/preflight.css) This PR removes additional CSS for `:disabled` buttons. It was meant to undo an override that is no longer present.
1 parent 0b7163c commit 87c9f32

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
566566
color: color-mix(in srgb, currentColor 50%, transparent);
567567
}
568568
569-
:disabled {
570-
cursor: default;
571-
}
572-
573569
img, svg, video, canvas, audio, iframe, embed, object {
574570
vertical-align: middle;
575571
display: block;

packages/tailwindcss/preflight.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,6 @@ textarea {
289289
color: color-mix(in srgb, currentColor 50%, transparent); /* 2 */
290290
}
291291

292-
/*
293-
Make sure disabled buttons don't get the pointer cursor.
294-
*/
295-
296-
:disabled {
297-
cursor: default;
298-
}
299-
300292
/*
301293
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
302294
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)

0 commit comments

Comments
 (0)