Skip to content
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

fix(@clayui/picker): LPD-28522 Fix language selector not displaying correctly on web content #5835

Merged
merged 8 commits into from
Jun 26, 2024

Conversation

ilzamcmed
Copy link
Member

@ilzamcmed ilzamcmed commented Jun 20, 2024

Ticket: https://liferay.atlassian.net/browse/LPD-28522

Motivation

The language selector is not displaying correctly: the labels of the status are overlapping the language key and the number of fields is not appearing.
image

Proposed Solution

Be able to set an auto width so that the menu can grow with the content.

Screenshots

image

Commits

  • fix(@clayui/picker): LPD-28522 Add option to add auto width
  • fix(@clayui/picker): LPD-28522 Update picker stories

@ilzamcmed ilzamcmed marked this pull request as ready for review June 20, 2024 15:27
@ilzamcmed
Copy link
Member Author

Heu @matuzalemsteles @pat270 @ethib137
This PR is ready for review!
Thanks

@ilzamcmed ilzamcmed force-pushed the LPD-28522 branch 2 times, most recently from 82ee1a4 to eefb5ae Compare June 20, 2024 21:44
@ilzamcmed ilzamcmed force-pushed the LPD-28522 branch 3 times, most recently from 05e517c to 5dcfe70 Compare June 21, 2024 12:43
@matuzalemsteles
Copy link
Member

I sent a commit to simplify the implementation a little bit.

@ethib137
Copy link
Member

Nice work on this @ilzamcmed and @matuzalemsteles . LGTM.

I think we really need some tests for this to ensure the menu continues behaving as expected in all the examples we listed on this PR. I don't mind if we merge this first and create a separate task to add the tests. What do you guys think? Do tests seem helpful for this?

@matuzalemsteles
Copy link
Member

I think we can leave the examples in the stories with menu open by default to do this as a chromatic test, the unit test is a little bad for reproducing this because normally the sizes are fake and it is not very reliable because this is normally a mock.

@matuzalemsteles matuzalemsteles merged commit cd0ee86 into liferay:master Jun 26, 2024
4 checks passed
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.

3 participants