Skip to content

Commit 99710a1

Browse files
committed
fix(btn): remove pointer events from before pseudo element
1 parent cb42d7b commit 99710a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/preset-theme-default/src/shortcuts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const shortcuts: Exclude<Preset['shortcuts'], undefined | StaticShortcutMap> = [
44
// 👉 States
55
[/^states:?(\d+)?$/, ([, op]) => `\
66
relative \
7+
before:pointer-events-none \
78
before:content-empty \
89
before:absolute \
910
before:inset-0 \
@@ -20,7 +21,7 @@ const shortcuts: Exclude<Preset['shortcuts'], undefined | StaticShortcutMap> = [
2021
[
2122
/^a-drawer-anchor-(left|right|top|bottom)$/,
2223
([, dir]) => {
23-
const classes = dir === 'left' || dir === 'right'
24+
const classes = (dir === 'left' || dir === 'right')
2425
? 'w-[300px] max-w-[calc(100vw-2rem)]'
2526
: 'h-[300px] max-h-[calc(100vh-2rem)]'
2627

0 commit comments

Comments
 (0)