Skip to content

Restore props for SLDS2 #492

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

Open
wants to merge 7 commits into
base: support-slds-2
Choose a base branch
from

Conversation

msmx-mnakagawa
Copy link
Collaborator

@msmx-mnakagawa msmx-mnakagawa commented Jul 11, 2025

What I did

  • restore the following props
    • Picklist
      • inputRef
    • PicklistItem
      • onClick
      • icon
      • iconRight
      • divider

What I additionally did

  • normalize markups around Icon

@msmx-mnakagawa msmx-mnakagawa self-assigned this Jul 11, 2025
@msmx-mnakagawa msmx-mnakagawa mentioned this pull request Jul 11, 2025
44 tasks
Copy link

reg-suit bot commented Jul 11, 2025

✨✨ That's perfect, there is no visual difference! ✨✨

Check out the report here.

@msmx-mnakagawa msmx-mnakagawa requested a review from stomita July 11, 2025 02:49
@msmx-mnakagawa msmx-mnakagawa marked this pull request as ready for review July 11, 2025 02:49
@@ -173,6 +173,7 @@ export type PicklistProps<MultiSelect extends boolean | undefined> = {
tooltip?: ReactNode;
tooltipIcon?: string;
elementRef?: Ref<HTMLDivElement>;
buttonRef?: Ref<HTMLDivElement>;
Copy link
Collaborator

@stomita stomita Jul 13, 2025

Choose a reason for hiding this comment

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

As the picklist is no more a button based, so the ref might not be a HTMLButtonElement, is it ok ?
As it is not a button anymore, it might be more suitable to rename it like inputRef.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@stomita
Thank you for noticing it.
As you commented, the element that receives this ref isn't a button tag.

I renamed it in 9d8c620.

@msmx-mnakagawa
Copy link
Collaborator Author

@stomita
FYI: Additionally, I restored onClick and iconRight props for PicklistItem.
If possible, could you confirm them as well...?

@msmx-mnakagawa msmx-mnakagawa requested a review from stomita July 18, 2025 00:44
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.

2 participants