[Fix] 0045422: Use ButtonContextRenderer for Glyph in Filter and Mode…#11019
[Fix] 0045422: Use ButtonContextRenderer for Glyph in Filter and Mode…#11019thibsy merged 3 commits intoILIAS-eLearning:release_11from
Conversation
96a3dc7 to
e07ada4
Compare
Annett7811
left a comment
There was a problem hiding this comment.
Hello!
From an accessibility perspective, this looks good. Thank you very much for your work.
Best regards,
Annett
|
Hello @fhelfer Do you @Annett7811 have these messages? I would actually like to hand this over to Thibeau, but I'm stuck on it. Best regards, |
|
Hello @oliversamoila! No, I don't get this error message in combination with a button element. Best regards, |
|
Thanks @Annett7811 Kind regards, |
|
Das liest sich wie die falsche Vorlage für @Annett7811 😉 |
|
Hey @dsstrassner, das passt soweit ;) |
|
Nicht das Annett Angst bekommt das sie selbst den PR anpassen muss. Harhar. 🙃 |
There was a problem hiding this comment.
Hi @fhelfer,
Thx a lot for your contribution to the UI framework!
Please help me answer the following questions about your changes:
-
ModeViewControl: you say this component is also affected by the same issue. However, I cannot find a glyph usage in theViewControl\Modeor theInput\ViewControl\Moderendering. Are you sure this is relevant?
Please implement the following changes:
- False-positives: I think once the
StandardFilterInputis added to theUSE_BUTTON_CONTEXT_RENDERER_FORconstant, every input that is contained inside such a filter will be rendered using this context renderer. I believe this creates false-positives. Please treat this component differently, by checking explicitly if its the current component, not just contained in the rendering chain. Maybe we should introduce a separate constant with appropriate documentation for this =).
Kind regards,
@thibsy (as UI coordinator)
Hey @thibsy, ILIAS/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php Lines 394 to 396 in 93771e0 which later gets rendered into a ViewControl Mode Switch here ILIAS/components/ILIAS/Container/Block/class.ilBlockGUI.php Lines 737 to 769 in bfc1335 |
…d ModeViewControl
|
@fhelfer ah, I see. This cannot be fixed using a context renderer then, because the component is already rendered outside of the filter context and passed along as a string. Or am I still missing something here? |
|
Ah yes, you're right - this is the wrong example. I think I was trying to solve it in Dashboard and accidentally left this in. However, it would still be good to have this, as glyphs used inside a Mode-Switch might be a common thing in the future. |
* Fixes https://mantis.ilias.de/view.php?id=45422 * Update `Symbol\Glyph\GlyphRendererFactory` and use for `Filter\Standard` as well
* Fixes https://mantis.ilias.de/view.php?id=45422 * Update `Symbol\Glyph\GlyphRendererFactory` and use for `Filter\Standard` as well

Error: The element “a” must not appear as a descendant of the “button” element.
https://mantis.ilias.de/view.php?id=45422
Glyphs with action were rendered as and ended up inside ,
which is invalid. Extend USE_BUTTON_CONTEXT_RENDERER_FOR with
StandardFilterContainerInput and ModeViewControl so glyphs render
as in these contexts.
Problem
<a>als Nachfahre von<button>ungültig (z. B. Filter, Dashboard ViewControlMode).Lösung