Skip to content

Conversation

@jzempel
Copy link
Member

@jzempel jzempel commented Aug 17, 2023

Description

The underlying logic container bump to Downshift v8 applies updated input click-to-expand functionality that falls more in line with the APG specification. By adopting this update, Garden's new Combobox now has click-to-expand behavior parity with the deprecated Autocomplete component.

Detail

zendeskgarden/react-containers#565

Checklist

  • 👌 design updates will be Garden Designer approved (add the designer as a reviewer)
  • 🌐 demo is up-to-date (yarn 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 August 17, 2023 15:10
@coveralls
Copy link

Coverage Status

coverage: 95.497% (-0.003%) from 95.5% when pulling ed0f0d1 on jzempel/upgrade-combobox-container into eb9208c on main.

})<IStyledTagsButtonProps>`
display: inline-flex;
flex: 0 1 auto; /* [1] */
align-items: center;
Copy link
Member Author

Choose a reason for hiding this comment

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

fixes a pixel off alignment issue observed between this button and value/input text

}
return props.isEditable ? 'text' : 'pointer';
return props.isEditable && !props.isAutocomplete ? 'text' : 'pointer';
Copy link
Member Author

Choose a reason for hiding this comment

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

Since isAutocomplete now triggers expansion, we want the cursor to be a pointer

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.

Nice, feels good in the demo. 🆒

@jzempel jzempel merged commit 4341747 into main Aug 18, 2023
@jzempel jzempel deleted the jzempel/upgrade-combobox-container branch August 18, 2023 14: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.

5 participants