0.9.1-alpha.14
Alpha@xaui/native@0.9.1-alpha.14
Patch Changes
-
2838877: R14 reaches every component that renders a node, not only the
Button.PressableFeedbackand itsHighlight/Rippleoverlays,PortalHostandIconnow take the style keys of the node they render, the same way theButtonand its slots do. The primitive every pressable control in the library is built on cannot be the one place wherepadding={16}has to become an object again.<PressableFeedback padding={12} borderRadius={16}>…</PressableFeedback> <Icon source={logo} marginEnd={8} />Icon's reach thesourceform only, exactly as far as itsstylealready does: the other two forms render a third-party component or clone the caller's element, so there is no node of ours to style. That is the rule applied, not an exception to it — the rule says the node the component renders, and there is one in three.On
PressableFeedbackthey merge intostylebefore either branch sees it, so the ink and the corners an overlay reads off its surface include abackgroundColoror aborderRadiuswritten as a prop.