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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Patch Changes
cee9376: Fix the "Try it" row's chrome (border, background) following the wrong palette when a host sets theme.mode (apiuikit ^1.9.0). tryItRowStyle previously guessed which of theme.light/theme.dark was active with theme?.light ?? theme?.dark — correct only for the old "light wins if both set" rule. It now reads useDocumentContext().resolvedMode, apiuikit's own answer, so the row stays visually consistent whenever mode picks dark (or "system" resolves to dark) while both palettes are configured. Requires apiuikit ^1.10.0 or later — the first version exposing resolvedMode (not 1.9.0, which shipped theme.mode itself but not this field).