You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 36b0ffc
Browse filesBrowse the repository at this point in the historyBrowse files
fix(native): draw the shared controls as AppKit's own on the Mac host
The shared Button resolved to the phone's filled pressable on every native
host and read `title` once on the server. On Craft's AppKit host that drew a
tall blue button with no words for `<Button :title="...">`, ignored `symbol`,
a caller's font size and colour, and drew nothing for a ghost button whose
only words were a bound title.
- Button is the host's push button (an NSButton) on macOS, on every variant
and for `appearance="mac"`: `title`, `label`, `text`, `symbol` and
`disabled` are live, a written `primary`, `danger`, `ghost` or `toolbar`
asks the host for that look and anything else is the plain push button.
A phone keeps the look it had.
- Which host a screen runs on is known only on the device, so a component may
mark several host roots and keep one. What the caller wrote on the tag is
forwarded to each at compile time, and a bound attribute is delivered to
each at run time.
- Select feeds the picker `options` as well as `items` (the name the AppKit
NSPopUpButton reads) and follows a bound `disabled`.
- `variant="mac"` on the AppKit host sizes TextInput, PasswordInput,
Checkbox, Switch, Select and SegmentedControl as AppKit does. Checkbox no
longer takes its stylesheet-only Mac markup on a native host.
- `iconOnly` keeps its spelling on the way to the host.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
0 commit comments