Skip to content

Commit

Permalink
Tiles: Prevent hydration error
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Dec 10, 2024
1 parent dfa816f commit 0e9cb20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .changeset/clever-seahorses-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'braid-design-system': patch
---

---
updated:
- Tiles
---

**Tiles**: Optimise layout implementation to prevent hydration error.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export const Tiles = ({
gap={space}
className={styles.tiles}
style={assignInlineVars({
[styles.mobileColumnsVar]: String(mobileColumns),
[styles.tabletColumnsVar]: String(tabletColumns),
[styles.desktopColumnsVar]: String(desktopColumns),
[styles.wideColumnsVar]: String(wideColumns),
[styles.mobileColumnsVar]: String(mobileColumns) || undefined,
[styles.tabletColumnsVar]: String(tabletColumns) || undefined,
[styles.desktopColumnsVar]: String(desktopColumns) || undefined,
[styles.wideColumnsVar]: String(wideColumns) || undefined,
})}
{...buildDataAttributes({ data, validateRestProps: restProps })}
>
Expand Down

0 comments on commit 0e9cb20

Please sign in to comment.