Conversation
✅ Deploy Preview for egdev6-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@andresito87 varias cosas: VISUALIZACIÓN 1- La variante shadow me queda rara con esa sombra en light mode 2-Asegúrate que los elementos cojan los colores correctos en light mode 3-Me queda raro que el icono de close sea tan pequeño (sin hover queda como muy separado) quizás sobreescribir los estilos para que no añada ese padding y el círculo en el hover) 4-El list lo eliminaría para hacerlo molécula en el futuro (aunque es un buen aporte), ya que lo veo más propio de una combinación de varias cosas (noi sólo el chip) 5-Le quitaría los efectos de hover a todas las variantes no interactuables con click ya que el componente en sí queda raro que tenga ese fecto hover cuando sólo es un componente visual e informativo. 6-Revisa errores de accesibilidad: Lo demás lo veo guay. Buen trabajo! |
|
@egdev6 He corregido lo fallos que has propuesto. El único que no me termina de convencer es cuando usamos el componente icon que no se como reescribir sus estilos para que use color claro u oscuro y que no cree hover ni cambios de colores. El problema del punto 2: |
…se icon in chip component
6f35ebc to
eb39426
Compare
There was a problem hiding this comment.
Pull request overview
Adds the new Chip atom and wires it into the public API, aiming to match current Design System interaction + accessibility patterns, with Storybook and Vitest coverage.
Changes:
- Introduces
Chipcomponent implementation (Chip.tsx) with split-actions markup whenclosable+ interactive are combined. - Adds styling/variants via CVA (
types.ts) and interaction/a11y logic via a hook (useChip.ts). - Publishes
Chipfromsrc/index.tsand adds Storybook stories + behavior tests.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/index.ts | Exposes Chip through the public entrypoint. |
| src/components/atoms/chip/Chip.tsx | Implements Chip rendering (single vs split-actions) and close button UI. |
| src/components/atoms/chip/useChip.ts | Centralizes interaction, selection state, and accessibility props. |
| src/components/atoms/chip/types.ts | Defines CVA variants and public prop types for the component. |
| src/components/atoms/chip/index.ts | Barrel export for the chip module. |
| src/components/atoms/chip/Chip.stories.tsx | Adds Storybook documentation and examples for variants/states. |
| src/components/atoms/chip/Chip.test.tsx | Adds Vitest coverage for a11y/interaction/selection/disabled behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Applied a final pass to address the remaining review feedback and align the Chip atom with current project conventions. What was updated
Validation
Notes
This should leave the PR in a cleaner state both for review and for long-term maintainability. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.













Summary
Chipy lo alinea con los patrones actuales del Design System.Closes #19
Type of change
Component checklist (skip if not applicable)
types.ts,use*.ts,Component.tsx,index.ts,*.stories.tsx)types.ts, not inlinetheme.cssanytypes — TypeScript strictHow to test
pnpm run storybookAtoms/ChipSizeColorVariantClickableClosable And ClickableDisabled And ClosableDot With Textpnpm test -- src/components/atoms/chip/Chip.test.tsxScreenshots / recordings (if applicable)
Notes for reviewer
closablese combina con interacción (onClick/selectable), el componente usa un patrón de split-actions para evitar controles interactivos anidados.src/index.ts.