-
Notifications
You must be signed in to change notification settings - Fork 491
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
LPD-46157 Create Icon Selector (No Keyboard Interactions) #5929
base: master
Are you sure you want to change the base?
Conversation
Hey @matuzalemsteles, this is the inicial commits for the icon selector component. |
037661f
to
f5ec448
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.
Thanks Ilza!
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.
Great work here, I just added some comments so we can readjust the component.
9338480
to
3def2fd
Compare
Hey @ethib137 and @matuzalemsteles, |
6a25c8c
to
fafd272
Compare
@matuzalemsteles can you please review these changes 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.
Overall, it seems ok, but I noticed two things that haven't been done yet. About the use of useResource
as I mentioned in Slack, maybe it should work now. If it doesn't work, we can schedule a meeting.
I saw that we haven't moved the IconSelectTrigger
component into the IconSelector
component yet, to simplify things a bit more and allow the developer to configure the component.
The documentation will also need to be updated to the new standard we have now. We won't need to change much, just the way we write the examples, which is simpler now.
@@ -16,6 +16,7 @@ | |||
@import 'components/_toasts'; | |||
|
|||
@import 'components/_icons'; | |||
@import 'components/_icon-selector'; |
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.
@pat270 were should this be placed in this list and why? Can you give a short explanation of the logic of the order of this file?
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.
@pat270 ^
0337f02
to
58c19b7
Compare
@ilzamcmed I'm making some adjustments to the component, I'll push some incremental commits tomorrow. It seems that |
Thanks @matuzalemsteles. |
Hey @matuzalemsteles , after the dependencies update, the verify dependencies test stuck at build, it don't move forward. This is happening locally also. Do you have any idea of what's happening? |
@ilzamcmed I've made some changes, I've changed the code a lot so it might break something if you're working on it. I've added public APIs so that the developer can configure them and I've kept the component in just one place instead of keeping a function inside the component. I've removed some APIs that I saw weren't necessary and I've also added the |
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.
Nice work! Just a couple things.
@@ -16,6 +16,7 @@ | |||
@import 'components/_toasts'; | |||
|
|||
@import 'components/_icons'; | |||
@import 'components/_icon-selector'; |
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.
@pat270 ^
@@ -0,0 +1,20 @@ | |||
// Variables | |||
$grid-columns: 9; | |||
$max-input-width: 200px; |
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 shouldn't have a comment like this and we probably don't need variables that are only used once each. @pat270 can you review the css, please?
…t and it's imports
…lector, adds public APIs and removes some unnecessary stuff
@ilzamcmed I realized we didn't need to add a new component in Clay CSS after looking through the markup. I added to dropdown and input-group. I went through and fixed a lot of the style inconsistencies since everyone is on holiday there. |
https://liferay.atlassian.net/browse/LPD-46157
simplescreenrecorder-2025-01-27_17.05.24.mp4