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

fix(DropdownMenu): add variant prop to be inline with other components #3996

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

HQFOX
Copy link
Contributor

@HQFOX HQFOX commented Jan 26, 2024

It doesn't make much sense that this component has a prop categories while others have variants and the values are the same.

category was marked as deprecated and not remove to not cause breaking changes

@HQFOX HQFOX requested a review from a team as a code owner January 26, 2024 17:55
@HQFOX HQFOX requested review from zettca and MEsteves22 and removed request for a team January 26, 2024 17:55
@github-actions github-actions bot temporarily deployed to uikit/pr-3996 January 26, 2024 18:01 Destroyed
@github-actions github-actions bot temporarily deployed to uikit-app/pr-3996 January 26, 2024 18:01 Destroyed
@github-actions github-actions bot temporarily deployed to uikit-docs/pr-3996 January 26, 2024 18:02 Destroyed
@@ -80,6 +85,7 @@ export const HvDropDownMenu = (props: HvDropDownMenuProps) => {
expanded,
defaultExpanded = false,
category = "secondaryGhost",
variant = "secondaryGhost",
Copy link
Contributor

Choose a reason for hiding this comment

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

If the user doesn't use the new variant property and they are still using category, the default value for the variant property will always override the value set for category. I believe not setting a default value for variant should fix this for now (in a next major we'll add the default value again).

@github-actions github-actions bot temporarily deployed to uikit/pr-3996 February 5, 2024 12:18 Destroyed
@github-actions github-actions bot temporarily deployed to uikit-app/pr-3996 February 5, 2024 12:19 Destroyed
@MEsteves22 MEsteves22 merged commit 4d1ecbd into master Feb 6, 2024
14 checks passed
@MEsteves22 MEsteves22 deleted the fix/dropdown_menu_variants branch February 6, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants