Skip to content

Batch B: card polish (shadow, padding, dividers) - #7

Merged
mwvolo merged 6 commits into
mainfrom
feature-card-polish
Jul 2, 2026
Merged

Batch B: card polish (shadow, padding, dividers)#7
mwvolo merged 6 commits into
mainfrom
feature-card-polish

Conversation

@mwvolo

@mwvolo mwvolo commented Jun 17, 2026

Copy link
Copy Markdown
Member

Batch B — card polish (renderer)

  • Light drop shadow on every card — uses filter: drop-shadow(...) (not box-shadow) so it coexists with the CORE-2301 top-accent box-shadow and follows the rounded corners.
  • Slightly more card padding ($normal-margin× 1.25).
  • New impact card style — square top corners, rounded bottom (border-radius: 0 0 1rem 1rem).
  • Card dividers are now full-width and 5px.

Verification

typecheck, lint, build pass.

Coordination / release order

Touches CardsBlock.scss + card_style options, overlapping the CORE-2301 cards PR (#5) — branched off main, so expect a small merge reconciliation (padding lines + the impact accent rule vs CORE-2301's accent rework). Pairs with the openstax-cms Batch B PR; reaches prod via a renderer-1.x tag + os-webview bump.

🤖 Generated with Claude Code

- Light drop shadow on every card (via filter, so it coexists with the
  top-accent box-shadow and follows the rounded corners).
- Slightly more card padding.
- New "impact" card style: square top corners, rounded bottom.
- Card dividers are now full-width and 5px.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

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.

Pull request overview

Polishes the renderer’s CardsBlock presentation by adjusting card visual styling and exposing a new “impact” style option in the block config.

Changes:

  • Add a light filter: drop-shadow(...) on each card and increase default padding ($normal-margin * 1.25).
  • Make card dividers full-width and thicker (5px) while preserving per-card color cycling.
  • Introduce a new impact card style (square top corners, rounded bottom) and add it to the card_style config options.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/flex-page-renderer/src/blocks/CardsBlock.scss Adds drop shadow + padding increase, updates divider styling, and defines card_style_impact (including custom-accent behavior).
packages/flex-page-renderer/src/blocks/CardsBlock.config.ts Adds Impact as a selectable card_style option in the CardsBlock config UI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/flex-page-renderer/src/blocks/CardsBlock.config.ts

@TomWoodward TomWoodward left a comment

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.

type: 'card_style';
id: string;
value: 'rounded' | 'square';
value: 'rounded' | 'square' | 'impact';

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.

this is more of a visual design question, but i feel like we don't need 3 (or 4) different card styles. if we can get some attention on the overall visual cohesion of the site, i think we can probably keep the variant count down

@mwvolo mwvolo Jun 29, 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'm going to remove this and keep the PR just about the shadow/padding/divider polish ✨

@TomWoodward TomWoodward left a comment

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.

☝️

mwvolo and others added 3 commits June 23, 2026 19:42
Removes the impact card_style option and its SCSS in response to review
feedback favoring fewer card variants. The shadow, padding, and divider
polish is unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mwvolo
mwvolo requested a review from TomWoodward June 29, 2026 22:38
@mwvolo mwvolo changed the title Batch B: card polish (shadow, padding, impact style, dividers) Batch B: card polish (shadow, padding, dividers) Jun 29, 2026
@mwvolo
mwvolo merged commit c0a018b into main Jul 2, 2026
8 of 9 checks passed
@mwvolo
mwvolo deleted the feature-card-polish branch July 2, 2026 21:33
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.

4 participants