-
Notifications
You must be signed in to change notification settings - Fork 87
Convert combobox
es to input
s for SLDS2
#494
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
Conversation
This reverts commit 9d8c620.
✨✨ That's perfect, there is no visual difference! ✨✨ Check out the report here. |
bab5edb
to
6314b0d
Compare
comboboxe
s to button
s for SLDS2
comboboxe
s to button
s for SLDS2combobox
es to button
s for SLDS2
src/scripts/Lookup.tsx
Outdated
@@ -161,7 +162,7 @@ const LookupSelectedState: FC<LookupSelectedStateProps> = ({ | |||
aria-expanded='false' | |||
> | |||
<span className='slds-truncate'>{selected.label}</span> | |||
</div> | |||
</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are u willing to change back to button, not the div ? Have u checked the focus difference ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
combobox
es to button
s for SLDS2combobox
es to input
s for SLDS2
c04117d
to
4adb664
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issues when opening picklist dropdown
Behavior before merging support-slds-2 PR #485
It also shows pointer cursor when hovered to the control in previous, but not shown now.
If you mean the widths of the picklist items, #495 is resolving it.
I fixed it in b226640. |
src/scripts/Picklist.tsx
Outdated
function useInitComponentStyle() { | ||
useEffect(() => { | ||
registerStyle('picklist', [ | ||
['.react-picklist-input:focus-visible', '{ outline: none; }'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are willing to cancel the focus ring of the control, it is not working right now.
I think it is not required to remove the ring for the focused picklist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I did
role="combobox"
to<input type="text" readonly />
sfindSelectedItemLabel()
inPicklist