Skip to content

feat(web-components): add mrd-chip component - #137

Merged
Mordech merged 8 commits into
mainfrom
feat/chip-component
Mar 8, 2026
Merged

feat(web-components): add mrd-chip component#137
Mordech merged 8 commits into
mainfrom
feat/chip-component

Conversation

@Mordech

@Mordech Mordech commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds mrd-chip Lit web component to @mordech/web-components
  • Single variant attribute: default (static label), interactive (clickable with interaction layer + keyboard support), clearable (remove button with its own interaction layer)
  • color attribute maps to semantic tonal token pair (container/onContainer) — supports primary, secondary, success, error

Test Plan

  • 8 unit tests pass (defined, render, a11y × 3, role=button check, no-role check, mrd-chip-clear event)
  • Build succeeds (dist/components/mrd-chip.js generated)
  • Visual check in Storybook: Default, Interactive, Clearable, WithIconStart, Secondary, Success, Error stories

- Pill-shaped chip with color, variant (default/interactive/clearable)
- Interactive variant adds role=button, tabindex, keyboard activation, and interaction layer
- Clearable variant shows a remove button with its own interaction layer
- Uses semantic color tokens (container/onContainer tonal pairing)
- 8 unit tests including a11y checks via jest-axe
- Storybook stories for all variants and colors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Mar 7, 2026

Copy link
Copy Markdown

Deploy Preview for mordech-react-components ready!

Name Link
🔨 Latest commit 804e17a
🔍 Latest deploy log https://app.netlify.com/projects/mordech-react-components/deploys/69ac9d58e68bc00008fb3924
😎 Deploy Preview https://deploy-preview-137--mordech-react-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Mar 7, 2026

Copy link
Copy Markdown

Deploy Preview for mordech-web-components ready!

Name Link
🔨 Latest commit 804e17a
🔍 Latest deploy log https://app.netlify.com/projects/mordech-web-components/deploys/69ac9d58f59d10000834baef
😎 Deploy Preview https://deploy-preview-137--mordech-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Mordech
Mordech merged commit f6631b1 into main Mar 8, 2026
9 checks passed
@Mordech
Mordech deleted the feat/chip-component branch March 8, 2026 21:31
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.

1 participant