Skip to content

Conversation

@jzempel
Copy link
Member

@jzempel jzempel commented Feb 16, 2024

BREAKING CHANGE: see the migration.md diff for details.

Description

This refactored PR uses Garden's updated grid container to handle navigation over color chips which are now backed by a native <input type="radio"> group – now requiring a name prop for group association. The 🚀 new isCheckboxGroup prop can be used to convert the color swatch to a <input type="checkbox"> group – which means selection can now be compeletely cleared, if necessary. The native controls naturally enhance keyboard accessibility by helping the user understand they are navigating a grid group.

Detail

The branch merge from main reminded me to add react-merge-refs v2 notes to the migration guide.

Checklist

  • 👌 design updates will be Garden Designer approved (add the designer as a reviewer)
  • 🌐 demo is up-to-date (npm start)
  • ⬅️ renders as expected with reversed (RTL) direction
  • 🤘 renders as expected with Bedrock CSS (?bedrock)
  • 💂‍♂️ includes new unit tests. Maintain existing coverage (always >= 96%)
  • ♿ tested for WCAG 2.1 AA accessibility compliance
  • 📝 tested in Chrome, Firefox, Safari, and Edge

@jzempel jzempel requested a review from a team as a code owner February 16, 2024 20:43
@coveralls
Copy link

Coverage Status

coverage: 96.096% (-0.1%) from 96.223%
when pulling 334f6d4 on jzempel/color-swatch-radio
into c2aa97d on next.

Copy link
Contributor

@geotrev geotrev left a comment

Choose a reason for hiding this comment

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

🚀


- `react-theming@v9` uses version range `^4.2.0 || ^5.1.0` to support `v8` to `v9` upgrades.

- Garden v9 upgraded from `react-merge-refs` v1 to v2.
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for catching this!

@jzempel jzempel merged commit f7c2778 into next Feb 20, 2024
@jzempel jzempel deleted the jzempel/color-swatch-radio branch February 20, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants