-
Notifications
You must be signed in to change notification settings - Fork 26
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(selectable search): add isCondensed prop to SelectableSearchInput
component
#2809
Merged
CarlosCortizasCT
merged 15 commits into
main
from
PANGOLIN-3713-Selectable-Search-Input-add-is-condensed-prop
May 13, 2024
Merged
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f29fd44
feat(selectable-search): add isCondensed prop to input
cdff306
feat(selectable-search-input): set height of SelectableSelect when is…
Sarah4VT d67698c
feat(selectable-search): add readme and changeset
49899ce
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
jmcreasman 9c110dc
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
ddouglasz 8c7d4c0
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
jmcreasman e60401e
feat(selectable-search): add isCondensed fontsize for select dropdown…
2f99892
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
jmcreasman 06bfed6
fix(selectable-search-input): fix dropdown styles
CarlosCortizasCT 796bd2d
refactor(selectable-search-input): simplify select styles
CarlosCortizasCT 902c430
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
jmcreasman 79aaa66
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
jmcreasman 3460910
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
jmcreasman cdeed86
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
CarlosCortizasCT b3dc39c
Merge branch 'main' into PANGOLIN-3713-Selectable-Search-Input-add-is…
CarlosCortizasCT File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@commercetools-uikit/selectable-search-input': minor | ||
--- | ||
|
||
Add isCondensed prop that when set to true, condenses the input height, icon size and font size. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 reason select (from react) is being used/imported here instead of the select component already set up in UI Kit? Then all that would be needed is just to pass in the isCondensed instead of re-setting up the conditional styling again.
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.
We saw something similar with
create-select-styles.ts
andselectable-search-input.styles.ts
where basically the same functions were both being written and the conditional styling had to be duplicated. However other instances pulled from the same function and all that had to be done was just pass the prop in. Maybe out of scope for this initiative but just something we noticed as we worked on the select input based components.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.
Hey @jmcreasman 👋
Sorry I totally missed your previous mentions. Regarding your observation above, thats a good question. I think that is a viable option as it seems they are similar components. However, I guess it is either these use cases are not ideal for the outcome we want using a SelectInput or they were just implemented in this isolated form. I can confirm this when I have some time to investigate further.
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.
Thanks @jmcreasman for your feedback 👍
I remember we run into som issues we couldn't overcome when we first tried to implement the
SelectableSearchInput
using theSelectInput
component, although I don't remember the exact reason.I agree with you that it's weird not all selectable components share more code and that's something that we would like to address in one of the initiatives we already discussed within the team for the future on
ui-kit
, however, we need to find the time to kickstart that initiative and I don't think that's going to happen this or next quarter.Anyway, we really appreciate the feedback so it helps us to confirm what we already had in mind for improving this area of
ui-kit
.