Skip to content

(components) fix/patch: various updates and improvements#467

Open
andrewrubin wants to merge 6 commits into
mainfrom
feature/component-improvements-and-fixes
Open

(components) fix/patch: various updates and improvements#467
andrewrubin wants to merge 6 commits into
mainfrom
feature/component-improvements-and-fixes

Conversation

@andrewrubin

Copy link
Copy Markdown
Member

Description

This PR bumps the wethegit-components package to version 4.0.0. It includes the following fixes and updates:

  • Removes the CSS modules file from useBreakpoints, due to Next JS and Turbopack no longer supporting the :export feature. Instead, this value is hard-coded in the use-breakpoints.ts file now.
  • Updates the grid-layout system to use the latest standards created by We the Collective's Design Team. This introduces a --grid-margin-width CSS custom property, and updates the Row and Wrapper component width and margin calculations to take the new value into account.
  • Adds margin: 0 to the body element in the CSS resets stylesheet.

@changeset-bot

changeset-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a2837a1

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

This PR includes changesets to release 2 packages
Name Type
@wethegit/components Major
@wethegit/components-cli 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

list-style: none;
margin-inline: auto;
padding-inline: calc(var(--wtc-gutter-width, 24px) * 0.5);
padding-inline: calc(var(--wtc-grid-margin-width) - var(--wtc-gutter-width) * 0.5);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @andrewrubin , while you are at it, what do you think about updating the grid to use gap instead so we don't need to do any of these shenanigans and nesting is much easier?

@andrewrubin andrewrubin Jun 18, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll think about this some today @marlonmarcello, good idea! If I can't get to it by the end of the week though, let's do it in another PR. At the moment this PR addresses fundamental issues in our workflow so I think it's slightly more urgent.

inset-inline: 100%;
margin-inline: auto;
padding-inline: calc(var(--wtc-gutter-width, 24px));
padding-inline: calc(var(--wtc-grid-margin-width));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: we don't need the calc() here.

Suggested change
padding-inline: calc(var(--wtc-grid-margin-width));
padding-inline: var(--wtc-grid-margin-width);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied your suggestion, TY

…r/wrapper.module.scss

Co-authored-by: Clinton <80900245+pravton@users.noreply.github.com>
Signed-off-by: Andrew Rubin <30575213+andrewrubin@users.noreply.github.com>
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.

3 participants