Skip to content

Conversation

@GomezIvann
Copy link
Collaborator

@GomezIvann GomezIvann commented Feb 21, 2025

Checklist

  • Build process is done without errors. All tests pass in the /lib directory.
  • Self-reviewed the code before submitting.
  • Meets accessibility standards.
  • Added/updated documentation to /website as needed.
  • Added/updated tests as needed.

Description
Redesign of the switch component following the new design kit specifications, already using the new token architecture (CSS variables). This PR includes a few accessibility updates regarding arias and roles, found through the reimplementation (the links are below).

Additional context
Figma designs
Switch pattern

@GomezIvann GomezIvann marked this pull request as ready for review February 27, 2025 12:40
@Mil4n0r Mil4n0r self-requested a review March 18, 2025 15:00
@Mil4n0r Mil4n0r self-assigned this Mar 18, 2025
@Mil4n0r Mil4n0r self-requested a review March 24, 2025 07:29
Copy link
Collaborator

@Mil4n0r Mil4n0r left a comment

Choose a reason for hiding this comment

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

Some additional changes are required for the stories.

  • Focused option does no longer have the outline.
  • Medium size (with long label + optional label) does no longer have ellipsis.

@GomezIvann
Copy link
Collaborator Author

Some additional changes are required for the stories.

  • Focused option does no longer have the outline.
  • Medium size (with long label + optional label) does no longer have ellipsis.

Fixed!

@Mil4n0r Mil4n0r merged commit 146a06d into master Apr 9, 2025
4 checks passed
@Mil4n0r Mil4n0r deleted the gomezivann/switch-tokens branch April 9, 2025 10:56
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