Skip to content

Commit

Permalink
Apply emitted style properties _after_ flex container specific styles. (
Browse files Browse the repository at this point in the history
  • Loading branch information
benmusson authored Jan 6, 2025
1 parent c232621 commit 7a3d56e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/lovely-waves-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@embr-modules/periscope-web': patch
'@embr-modules/periscope': patch
---

(FlexRepeater+) Apply emitted style properties _after_ flex container specific styles. Fixes Issue #218.
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ export function FlexRepeaterComponent({
}: ComponentProps<FlexRepeaterProps>) {
const containerProps = emit({ classes: ['view-parent'] })
containerProps.style = {
...containerProps.style,
display: 'flex',
flexDirection: props.settings?.direction,
flexWrap: props.settings?.wrap,
justifyContent: props.settings?.justify,
alignItems: props.settings?.alignItems,
alignContent: props.settings?.alignContent,
...containerProps.style,
}

return (
Expand Down

0 comments on commit 7a3d56e

Please sign in to comment.