Skip to content

fix(showcase): extract product card into headless component with ::pa… - #164

Merged
miguelramos merged 2 commits into
nextfrom
fix/line-ui-m3d-8-refactor-product-card-headless
Mar 27, 2026
Merged

fix(showcase): extract product card into headless component with ::pa…#164
miguelramos merged 2 commits into
nextfrom
fix/line-ui-m3d-8-refactor-product-card-headless

Conversation

@miguelramos

Copy link
Copy Markdown
Member

…rt() API

Refactor the T3 e-commerce product card from inline Shadow DOM styles with hardcoded design tokens into a separate custom element that defines structure and layout only. All design system tokens (--line-*) are now applied externally by sc-page-playground via ::part() selectors, establishing the correct headless pattern for all showcase composition blocks.

Resolves: line-ui-m3d.8

…rt() API

Refactor the T3 e-commerce product card from inline Shadow DOM styles
with hardcoded design tokens into a separate <sc-product-card> custom
element that defines structure and layout only. All design system tokens
(--line-*) are now applied externally by sc-page-playground via ::part()
selectors, establishing the correct headless pattern for all showcase
composition blocks.

Resolves: line-ui-m3d.8
@miguelramos miguelramos self-assigned this Mar 27, 2026
@miguelramos miguelramos added the ✨ TYPE: Feature New feature or capability label Mar 27, 2026
@changeset-bot

changeset-bot Bot commented Mar 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e84c932

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

- Replace imperative DOM manipulation in _handleImageError with
  reactive Lit state (_imageError flag + conditional template)
- Add documentation comment on inline style injection pattern
  in _renderColorDots as showcase-only, not for production use
@miguelramos
miguelramos merged commit 13395f4 into next Mar 27, 2026
1 check passed
@miguelramos
miguelramos deleted the fix/line-ui-m3d-8-refactor-product-card-headless branch March 27, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ TYPE: Feature New feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant