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

feat(dropdowns)!: removes object type from Option value prop #1773

Merged
merged 2 commits into from Apr 3, 2024

Conversation

geotrev
Copy link
Contributor

@geotrev geotrev commented Apr 2, 2024

Description

  • Carrying down the work from container-combobox, updating Option to no longer accept objects for the value prop.
  • Updates any peripheral components which used to process objects, to now only accept strings.
  • Updates 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

@coveralls
Copy link

coveralls commented Apr 2, 2024

Coverage Status

coverage: 96.077% (+0.005%) from 96.072%
when pulling 05a4493 on george/container-combobox-v2
into c578897 on next.

@geotrev geotrev marked this pull request as ready for review April 3, 2024 14:24
@geotrev geotrev requested a review from a team as a code owner April 3, 2024 14:24
@@ -16,8 +16,7 @@ import { IOptGroupProps, IOptionProps } from '../../types';
*
* @returns A string based on `option.value`.
*/
export const toString = (option: IOption) =>
typeof option.value === 'string' ? option.value : JSON.stringify(option.value);
export const toString = (option: IOption) => option.value;
Copy link
Member

Choose a reason for hiding this comment

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

Is this utility still used anywhere? It doesn't seem like much of a utility anymore πŸ˜‰

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Won't you want to stroll down memory lane in six months? πŸ˜›

@geotrev geotrev merged commit c26a7bf into next Apr 3, 2024
5 checks passed
@geotrev geotrev deleted the george/container-combobox-v2 branch April 3, 2024 18:13
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.

None yet

4 participants