-
-
Notifications
You must be signed in to change notification settings - Fork 204
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(#8541): fixes display of Enketo select option #8565
Conversation
@garethbowen can you please review this quick fix? Thanks |
@garethbowen I used the enketo widget form |
@garethbowen please hold, I'm checking some input display |
@latin-panda How are you getting on with this one? |
…long_names_enketo
It turned out to be more challenging to fix than I expected, but I think it's okay now. Testing using enketo widget form @garethbowen can you please review? |
Hi @latin-panda, I was testing your branch and as you said, everything is looking fine with 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.
Overall looks good, but rejected based on the bug.
…long_names_enketo
@tatilepizs I've fixed it. |
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.
Thank you @latin-panda for fixing it so quickly ✨
I just have a question that is definitely not a blocker.
Why for some elements it is going to the next line in the correct place (blank space) and in other elements is cutting the word?
Is this something related to the code or is more related to the form? Do you know?
For example:
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.
Starting to look really good, thanks!
I've left a few suggestions inline.
Also in your screenshot here the dropdown option label isn't wrapping at all. I didn't manage to figure out what was going on but maybe you can see something?
webapp/src/css/enketo/medic.less
Outdated
margin: 0; | ||
display: contents; |
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.
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.
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.
I've removed the margin
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.
Ahh ok, thanks.
@garethbowen That's what I tried to explain here, I didn't find a way to wrap it, and that doesn't affect other fields display Edit: |
@tatilepizs somewhere else in the code, there's an additional rule to break by word instead of by letter when the field is in a column. I initially made it by letter in case of weird big words, which may be uncommon. It looks like the browser deals with long words just well, so because of that unlikely scenario, I changed it to break by word that looks nicer. Thanks for the observation! |
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 for going back and forwards on this!
This is so complicated and requires so much testing I wonder if we need a test suite which compares screenshots. Then we can create a form with all of these edge cases and automatically check that we haven't regressed somewhere else... |
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.
It looks so much better @latin-panda, thanks ✨
This change ended up making these radio span label elements not interact able in new wdio, and also in chrome dev tools - if I open dev tools and click on an element, it won't get focused :( |
Related chrome issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1366037 |
Description
#8541
Code review checklist
Compose URLs
If Build CI hasn't passed, these may 404:
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.