-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Make TaskCheckBox render correctly #11214
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
Make TaskCheckBox render correctly #11214
Conversation
Signed-off-by: Andrew Thornton <[email protected]>
774ce39
to
0351046
Compare
For some unknown reason prior to 812cfd0 isChecked meant that the checkbox should be rendered not checked but after this commit it has returned to the correct sense. I have been unable to find any clear reason why this happened - presumably the change in the priority of the renderer here: from: gitea/modules/markup/markdown/markdown.go Line 74 in 0be25e2
means that there was a renderer running before ours that is munging the AST in some way. |
It would seem that tasklist renderer took over and |
Signed-off-by: Andrew Thornton <[email protected]>
As discussed on discord previously these checkboxes were rendered incorrectly - I have now restored the correct fomantic styling. |
Works fine here, but I have one small nitpick about how it looks on light style: I am wondering if it wouldn't be better to apply While I realize that |
Thanks for checking that I had totally missed that problem! |
Signed-off-by: Andrew Thornton <[email protected]>
Setting them to readonly instead appears to fix the problem. |
Codecov Report
@@ Coverage Diff @@
## master #11214 +/- ##
==========================================
- Coverage 43.22% 43.20% -0.03%
==========================================
Files 604 604
Lines 86004 86050 +46
==========================================
+ Hits 37175 37177 +2
- Misses 44237 44283 +46
+ Partials 4592 4590 -2
Continue to review full report at Codecov.
|
* Fix checkbox rendering Signed-off-by: Andrew Thornton <[email protected]> * Normalize checkbox rendering Signed-off-by: Andrew Thornton <[email protected]> * set the checkboxes to readonly instead of disabled Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lauris BH <[email protected]>
Fix #11213
Signed-off-by: Andrew Thornton [email protected]