Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiles: Migrate to CSS gap #1604

Merged
merged 6 commits into from
Oct 3, 2024
Merged

Tiles: Migrate to CSS gap #1604

merged 6 commits into from
Oct 3, 2024

Conversation

michaeltaranto
Copy link
Contributor

Migrate to CSS gap internally.

With the browser support policy now enabling adoption of CSS gap, Braid’s layout components are now able to lean into the platform directly for its declarative, parent-driven approach to white space management.

Previously to enable gap-like behaviour, layout components iterated over their children wrapping them in container elements that applied padding.
The trade off of this technique was increased number of DOM elements and the introduction of unwanted space if the child element was hidden or return null, requiring developers to hoist logic to the parent component.

@michaeltaranto michaeltaranto requested a review from a team as a code owner October 2, 2024 05:03
Copy link

changeset-bot bot commented Oct 2, 2024

🦋 Changeset detected

Latest commit: bb83ecc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
braid-design-system Major
@braid-design-system/docs-ui Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@michaeltaranto michaeltaranto changed the title V33 tiles gap Tiles: Migrate to CSS gap Oct 2, 2024
@michaeltaranto michaeltaranto merged commit e06719d into next Oct 3, 2024
6 checks passed
@michaeltaranto michaeltaranto deleted the v33-tiles-gap branch October 3, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants