Skip to content

Commit 8ed170b

Browse files
authored
Merge branch 'main' into claude/kinu-missing-components-bmdgf
2 parents b0fa99b + cae14b3 commit 8ed170b

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

src/base.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,49 @@
1212
:where([k], a, button, input, select, textarea, summary) {
1313
-webkit-tap-highlight-color: transparent;
1414
}
15+
16+
/* Disable the iOS long-press callout on kinu <button> elements so they feel
17+
* like native app controls. Button-like components rendered as anchors
18+
* (e.g. <Button href>) intentionally retain the native callout so right-click
19+
* / long-press actions like "Copy link" stay accessible. */
20+
button[k] {
21+
-webkit-touch-callout: none;
22+
}
23+
24+
/* Prevent text selection on non-input components that don't house inputs,
25+
* for a native desktop/mobile app feel. Inputs and content-housing
26+
* containers (card, dialog, drawer, popover, sheet, table, tree, carousel,
27+
* combobox, hover-card, sidebar, etc.) are intentionally omitted so their
28+
* inner text and form content remain selectable. */
29+
:where(
30+
button[k],
31+
[k="alert"],
32+
[k="avatar"],
33+
[k="badge"],
34+
[k="breadcrumb"],
35+
[k="breadcrumb-list"],
36+
[k="breadcrumb-item"],
37+
[k="breadcrumb-link"],
38+
[k="dropdown-menu-item"],
39+
[k="menubar"],
40+
[k="navigation-menu"],
41+
[k="navigation-menu-list"],
42+
[k="navigation-menu-item"],
43+
[k="navigation-menu-link"],
44+
[k="pagination"],
45+
[k="pagination-list"],
46+
[k="pagination-item"],
47+
[k="progress"],
48+
[k="separator"],
49+
[k="skeleton"],
50+
[k="spinner"],
51+
[k="tablist"],
52+
[k="toast-container"],
53+
[k="toast-icon"],
54+
[k="toggle-group"],
55+
[k="tooltip"],
56+
[k="tree-label"]
57+
) {
58+
-webkit-user-select: none;
59+
user-select: none;
60+
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './base.css';
12
import './lib/commands';
23
export {Item} from './components/item';
34
export type {

0 commit comments

Comments
 (0)