Skip to content

Conversation

@ze-flo
Copy link
Contributor

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

Description

This PR updates various components in react-dropdowns.legacy 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

coveralls commented Oct 22, 2024

Coverage Status

coverage: 95.891% (-0.005%) from 95.896%
when pulling 4d6a124 on ze-flo/transient-props-dropdowns-legacy
into bbe1263 on main.

Copy link
Contributor Author

@ze-flo ze-flo left a comment

Choose a reason for hiding this comment

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

All including stories tests are passing. ✅

onFocus,
readOnly,
validation,
mediaLayout,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

StyledFauxInput sets the mediaLayout to true and extends FauxInput, a React FC that returns a styled-component. In this case, a transient prop wouldn't be forwarded.

@ze-flo ze-flo marked this pull request as ready for review October 22, 2024 20:16
@ze-flo ze-flo requested a review from a team as a code owner October 22, 2024 20:16
@ze-flo ze-flo merged commit 5a6c53c into main Oct 23, 2024
8 checks passed
@ze-flo ze-flo deleted the ze-flo/transient-props-dropdowns-legacy branch October 23, 2024 18:38
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.

4 participants