-
Notifications
You must be signed in to change notification settings - Fork 1
Create internal input with dropdown #794
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
base: feature/create-search-input-component
Are you sure you want to change the base?
Create internal input with dropdown #794
Conversation
5c03e78 to
c47c660
Compare
c47c660 to
9ea3bcf
Compare
9ea3bcf to
92558ca
Compare
| } | ||
|
|
||
| .adyen-pe-button--tertiary { | ||
| font-weight: 400; |
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.
Could we use a token for this?
| background: transparent; | ||
| outline: none; | ||
| border: 0; | ||
| outline: none !important; |
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.
Is there a way we could avoid using !important here? It will make it more difficult for final users to override this.
| {hasIcons ? ( | ||
| {hasDropdownOrIcons ? ( | ||
| <div className="adyen-pe-input__container"> | ||
| {shouldDisplayDropdownAtStart && dropdown && ( |
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.
is the && dropdown verification redundant? we're already checking that dropdown is truthy in shouldShowDropdown
| {iconAfter} | ||
| </span> | ||
| )} | ||
| {shouldDisplayDropdownAtEnd && dropdown && ( |
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.
same here
| onClickCapture={e => e.stopPropagation()} | ||
| onMouseDownCapture={e => e.stopPropagation()} |
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.
nit: Seems a little odd to stop the propagation in the parent div, we could consider an alternative approach?
| onMouseDownCapture={e => e.stopPropagation()} | ||
| > | ||
| <Select | ||
| items={dropdown.items} |
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.
To have the same styles with dropdown position start below can be added
buttonVariant={ButtonVariant.TERTIARY}
PBL Creation Flow: Internal form input fields
Fixed issue: IEX-1052