File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
packages/ui-components/src/styles Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1313@import './base.css' layer(utilities);
1414@import './markdown.css' layer(utilities);
1515
16- /*
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.
23- */
2416@layer base {
2517 : root {
2618 --header-height : calc (var (--spacing , 0.25rem ) * 16 );
2719 }
2820
21+ /* See https://tailwindcss.com/docs/upgrade-guide#default-border-color */
2922 * ,
3023 ::after ,
3124 ::before ,
3225 ::backdrop ,
3326 ::file-selector-button {
3427 border-color : var (--color-gray-200 , currentColor);
3528 }
29+
30+ /* See https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor */
31+ button ,
32+ [role = 'button' ] {
33+ & : not (: disabled ) {
34+ @apply cursor-pointer;
35+ }
36+ }
3637}
3738
3839@custom-variant aria-current (& [aria-current = "page" ]);
You can’t perform that action at this time.
0 commit comments