Skip to content

Commit 43713be

Browse files
authored
fix(tw): use v3 button styling
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 2aa8ae6 commit 43713be

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/ui-components/styles/index.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@
1414
@import './markdown.css' layer(utilities);
1515

1616
/*
17-
The default border color has changed to `currentColor` in Tailwind CSS v4,
18-
so we've added these compatibility styles to make sure everything still
19-
looks the same as it did with Tailwind CSS v3.
20-
21-
If we ever want to remove these styles, we need to add an explicit border
22-
color utility to any element that depends on these defaults.
17+
See https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor
18+
See https://tailwindcss.com/docs/upgrade-guide#default-border-color
2319
*/
2420
@layer base {
2521
:root {
2622
--header-height: calc(var(--spacing, 0.25rem) * 16);
2723
}
2824

25+
button:not(:disabled),
26+
[role="button"]:not(:disabled) {
27+
cursor: pointer;
28+
}
29+
2930
*,
3031
::after,
3132
::before,

0 commit comments

Comments
 (0)