Skip to content

Commit 43e762b

Browse files
authored
feat(button): add user-select and min-size fallback (#804)
1 parent d972212 commit 43e762b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/poor-cats-fry.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/components-css/button-css/src/_mixin.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
display: inline-flex;
1313
font-family: var(--nl-button-font-family);
1414
justify-content: center;
15-
min-block-size: var(--nl-button-min-block-size);
16-
min-inline-size: var(--nl-button-min-inline-size);
15+
min-block-size: var(--nl-button-min-block-size, 44px);
16+
min-inline-size: var(--nl-button-min-inline-size, 44px);
1717
outline-offset: var(--nl-button-outline-offset);
1818
overflow-wrap: break-word;
1919
padding-block-end: var(--nl-button-padding-block-end);
@@ -22,6 +22,8 @@
2222
padding-inline-start: var(--nl-button-padding-inline-start);
2323
text-align: start;
2424
text-box-trim: trim-both;
25+
-webkit-user-select: none;
26+
user-select: none;
2527

2628
/*
2729
* Button has formatted content but no icon or label elements. The display

0 commit comments

Comments
 (0)