Skip to content

RiverBreakoutTabs + Card layout adjustments - #1393

Merged
rezrah merged 4 commits into
mainfrom
rezrah/brand-refactor-qa-fixes-jul-8
Jul 9, 2026
Merged

RiverBreakoutTabs + Card layout adjustments#1393
rezrah merged 4 commits into
mainfrom
rezrah/brand-refactor-qa-fixes-jul-8

Conversation

@rezrah

@rezrah rezrah commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Resolves https://github.com/orgs/github/projects/23995/views/5?pane=issue&itemId=196247289
Resolves https://github.com/github/brand-experience/issues/387

Part of https://github.com/github/brand-experience/issues/289

List of notable changes:

  • Reduces space between Card description and links globally
  • Updates multiple things in RiverBreakoutTabs per this issue

What should reviewers focus on?

Steps to test:

  1. Use this story to check the spacing in Card
  2. Use this story to check the river breakout tabs changes

Contributor checklist:

  • All new and existing CI checks pass
  • Tests prove that the feature works and covers both happy and unhappy paths
  • Any drop in coverage, breaking changes or regressions have been documented above
  • UI Changes contain new visual snapshots (generated by adding update snapshots label to the PR)
  • All developer debugging and non-functional logging has been removed
  • Related issues have been referenced in the PR description

Reviewer checklist:

  • Check that pull request and proposed changes adhere to our contribution guidelines and code of conduct
  • Check that tests prove the feature works and covers both happy and unhappy paths
  • Check that there aren't other open Pull Requests for the same update/change

Screenshots:

Screenshot 2026-07-08 at 11 25 09

Please try to provide before and after screenshots or videos

Before After
Screenshot 2026-07-08 at 11 54 50 Screenshot 2026-07-08 at 11 54 57

Copilot AI review requested due to automatic review settings July 8, 2026 11:43
@rezrah
rezrah requested a review from a team as a code owner July 8, 2026 11:43
@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 38460fd

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

This PR includes changesets to release 9 packages
Name Type
@primer/react-brand Patch
@primer/brand-docs Patch
@primer/brand-css Patch
@primer/brand-primitives Patch
@primer/brand-e2e Patch
@primer/brand-fonts Patch
@primer/brand-mcp Patch
@primer/brand-config Patch
@primer/brand-storybook Patch

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

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🟢 No design token changes found

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adjusts layout spacing in Card and RiverBreakoutTabs to better match the updated design requirements, primarily by tightening vertical spacing and refining wide-breakpoint padding/interaction styling.

Changes:

  • Reduced Card description-to-link spacing from --base-size-32 to --base-size-24.
  • Updated RiverBreakoutTabs spacing at wide breakpoints (outer gridline spacing and wide action spacing).
  • Tweaked RiverBreakoutTabs tab/accordion indicator transform and added a heading color transition.
Show a summary per file
File Description
packages/react/src/river/RiverBreakoutTabs/RiverBreakoutTabs.module.css Adjusts wide-breakpoint spacing variables, tablist action spacing, indicator transform, and heading transition.
packages/react/src/Card/Card.module.css Reduces description bottom margin to tighten description-to-link spacing.
.changeset/river-breakout-tabs-wide-action-spacing.md Adds a patch changeset documenting the RiverBreakoutTabs updates.
.changeset/card-description-link-spacing.md Adds a patch changeset documenting the Card spacing change.

Review details

  • Files reviewed: 4/74 changed files
  • Comments generated: 4
  • Review effort level: Low

Comment thread packages/react/src/river/RiverBreakoutTabs/RiverBreakoutTabs.module.css Outdated
Comment thread packages/react/src/river/RiverBreakoutTabs/RiverBreakoutTabs.module.css Outdated
Comment thread packages/react/src/river/RiverBreakoutTabs/RiverBreakoutTabs.module.css Outdated
Comment thread packages/react/src/river/RiverBreakoutTabs/RiverBreakoutTabs.module.css Outdated
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🟢 Bundle size report

CheckMainBranchChange
UMD — full bundle (JS)101.33 kB101.33 kB🟢 No change
UMD — full bundle (CSS)66.86 kB66.82 kB✅ -35 B (-0.1%)
ESM — full bundle (JS + CSS)1.51 MB1.51 MB⬆️ +344 B (+0.0%)
ESM — tree-shaken simple (Button)69.59 kB69.82 kB⬆️ +237 B (+0.3%)
ESM — tree-shaken complex (ActionMenu)78.37 kB78.60 kB⬆️ +237 B (+0.3%)

@rezrah
rezrah temporarily deployed to github-pages July 8, 2026 11:46 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🟢 No unit test coverage changes found

All components and hooks with tests maintain the same coverage as the main branch.

@rezrah
rezrah temporarily deployed to github-pages July 8, 2026 11:57 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🟢 No visual differences found

Our visual comparison tests did not find any differences in the UI.

Comment on lines +15 to +16
--brand-RiverBreakout-variant-gridline-spacing-outerInline: var(--base-size-60);
--brand-RiverBreakout-variant-gridline-spacing-outerBlock: var(--base-size-60);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we move these updated values to design tokens please?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@danielguillan are you looking to update the existing token values, which will impact multiple components or add new ones for RiverBreakoutTabs?

I'd rather avoid scope creeping by changing RiverBreakout right now. Adding an entire component token file just for two overrides feels a bit heavy handed, though I do see your argument for hoisting these. Can you clarify the intent first please.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These are already defined and scoped to RiverBreakout so these lines are only overriding the existing tokens rather than defining new ones, right? Or maybe I'm missing something, sorry.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

noting for posterity that we resolved this in DMs. we'll leave hoisting these as the tokens touch 2 different river breakout components.

@danielguillan danielguillan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. We just need to transfer some updated values for RiverBreakout to the design tokens file.

@rezrah
rezrah temporarily deployed to github-pages July 9, 2026 10:46 — with GitHub Actions Inactive
@rezrah
rezrah merged commit e9f572f into main Jul 9, 2026
17 checks passed
@rezrah
rezrah deleted the rezrah/brand-refactor-qa-fixes-jul-8 branch July 9, 2026 13:13
@primer primer Bot mentioned this pull request Jul 9, 2026
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