Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(dropdowns): use transient props where appropriate #1961

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ze-flo
Copy link
Contributor

@ze-flo ze-flo commented Oct 24, 2024

Description

This PR updates various components in react-dropdowns to use transient props where appropriate. These changes are necessary in preparation for the upgrade to [email protected] to ensure we avoid DOM violation errors after the transition.

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 in dark mode
  • 🤘 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

@coveralls
Copy link

Coverage Status

coverage: 95.891%. remained the same
when pulling ed6966c on ze-flo/transient-props-dropdowns
into 5a6c53c on main.

@ze-flo
Copy link
Contributor Author

ze-flo commented Oct 24, 2024

This PR unintentionally fixes a misalignment of the MenuItem icon when isCompact is set to true.

See this comment for details.

@ze-flo ze-flo marked this pull request as ready for review October 24, 2024 00:48
@ze-flo ze-flo requested a review from a team as a code owner October 24, 2024 00:48
@ze-flo
Copy link
Contributor Author

ze-flo commented Oct 24, 2024

All tests have passed as expected after snapshot ae9e4f2. 🙌

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.

2 participants