From e22ecf18bde91366904008bf3c0a85380b615618 Mon Sep 17 00:00:00 2001 From: Cina Saffary Date: Wed, 17 Apr 2024 17:10:15 -0500 Subject: [PATCH] fix: include children prop in ruleProps (#918) This allows style rules to be conditionally applied based on (for example) the presence or absence of any children passed to the component. --- packages/fela-bindings/src/createComponentFactory.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/fela-bindings/src/createComponentFactory.js b/packages/fela-bindings/src/createComponentFactory.js index 82695c4c7..8a34ee537 100644 --- a/packages/fela-bindings/src/createComponentFactory.js +++ b/packages/fela-bindings/src/createComponentFactory.js @@ -77,6 +77,7 @@ export default function createComponentFactory( theme: _felaTheme, as, id, + children, } // if the component renders into another Fela component