Support descriptions on additional interactive#2981
Conversation
|
Thanks, @mitchkeller! I'll be able to look at this closer in a couple of days. |
|
As discussed, review from Claude coming next.
A force-push is fine. Thanks for this one! |
Review of #2981 — works end-to-end; one consolidation suggestionI built the sample article on the branch (its edits are the test cases) and inspected the rendered output for all five interactive types. Everything lands correctly:
The geogebra shorthand path is the subtle one and it checks out. The repair extension is sound. Adding Consolidation opportunity (optional — the PR is correct as-is). This work brings the count of one accessibility block to five. The title/ <xsl:choose>
<xsl:when test="not(string(shortdescription) = '')">
<xsl:attribute name="title"><xsl:apply-templates select="shortdescription"/></xsl:attribute>
</xsl:when>
<xsl:when test="description">
<xsl:attribute name="title"><xsl:text>described in detail following the image</xsl:text></xsl:attribute>
<xsl:attribute name="aria-describedby"><xsl:apply-templates select="." mode="describedby-id"/></xsl:attribute>
</xsl:when>
</xsl:choose>Since all five are identical and all are A few typos in the new sample-article descriptions:
Non-blocking observation: for the short+long combination, the long description is in the DOM but the iframe is Net: functionally complete and correct across all five interactive types. No blocking change; the consolidation is a nice-to-have given how much of these templates is now duplicated, and the description typos are worth a quick fix since this is sample content. Claude Opus 4.8, acting as a review assistant for Rob Beezer |
…s containing GeoGebra, Desmos, CircuitJS, and CalcPlot3D
… Desmos, GeoGebra, CircuitJS, and CalcPlot3D
|
I've pushed the typo fixes, and I'd like to do the consolidation bit myself, as I think doing that will improve my understanding of how some of these things work. Questions before I dig into that:
|
55fcc5d to
7516c65
Compare
|
|
Two topical templates as suggested are now after the five places they're used. Left the |
Sending this as three commits just to make clearer where the changes were. I think this now covers the various interactive elements (Desmos, GeoGebra, CalcPlot3D, CircuitJS, and arbitrary iframe) for descriptions.
interactive[@geogebra]with children has them copied when restructuring to useinteractive/slate.descriptionto be ashortdescriptionwhen the child ofinteractivepretext-html.xslto replicate earlier work done forinteractive[@platform]to have descriptions.shortdescription, bothshortdescriptionanddescription, unstructureddescription) added to the sample article.