Conversation
9193d3e to
d58a196
Compare
d9c9a9a to
abe3684
Compare
219d6a4 to
aeef603
Compare
8379657 to
625a65a
Compare
05e9353 to
d956508
Compare
d956508 to
939592a
Compare
83abe08 to
c01e3c1
Compare
c01e3c1 to
9b1303a
Compare
| (() => { | ||
| const el = document.getElementById('#{checkbox_id}'); | ||
| const bg = window.getComputedStyle(el).backgroundColor; | ||
| return bg !== 'rgba(0, 0, 0, 0)' && bg !== 'rgb(255, 255, 255)'; |
There was a problem hiding this comment.
Is there an alternate thing I could check here instead of whether or not the background is white or transparent? What I want to be testing is if the indeterminate checkbox is visible, and this needs to be done because if the default state for the checkboxes is switched to "unchecked", all other tests still pass (as indeterminate state is applied correctly), but aren't visible as it's white on white
There was a problem hiding this comment.
From the top of my head, I don't have a better idea. Why do we need to check the visuals compared to the indeterminate JS state?
There was a problem hiding this comment.
Because of the case where it can be indeterminate (and technically showing the -), but because the checkbox is unchecked, the background is white, and so it's indistinguishable visually compared to the regular unchecked state
For these cases, the JS state shows correctly that it's indeterminate, so all my specs were passing, but on the screen it looked like blank boxes everywhere 😬
There was a problem hiding this comment.
I see. I guess that makes sense to test it like that then?
There was a problem hiding this comment.
Yeah I guess I'll keep it. Let's hope it's not too brittle
oliverguenther
left a comment
There was a problem hiding this comment.
I really like the behavior and have not found any issues with it. I believe it will make editing much easier. There is a remark on the Save button in the select panel, but that could also be addressed separately.
|
I'll handle the select panel button separately in https://community.openproject.org/wp/74560, where I can also add some basic lookbook docs |

Ticket
https://community.openproject.org/wp/72242
What are you trying to accomplish?
What approach did you choose and why?
Merge checklist