Sure. No problem. You'll have this for both templates in the next version of whc/ditac/ebookc, that is, whc version 3.3.2 (see http://www.xmlmind.com/ditac/_whc/doc/manual/changes.html).

On 7/19/22 13:20, Michael Weigmann wrote:
Dear community, dear Hussein,

what do you think about enhancing the generated website with aria role attributes especially in the classic template? Most of the relevant elements are links that can be identified quite well by screen readers. But the toc-navigation and print icon are span elements for which we could provide role=/"button" /attributes.

Please look at this patch:

diff --git "a/whc_template/classic.html" "b/whc_template/classic.html"

index b25d48d..00869b1 100644

--- "a/whc_template/classic.html"

+++ "b/whc_template/classic.html"

@@ -33,13 +33,13 @@

          </ul>

          <div id="wh-toc-container">

            <div id="wh-toc-form"><span id="wh-toc-collapse-all"

-            class="wh-icon-collapse-all"></span><span id="wh-toc-expand-all"

-            class="wh-icon-expand-all"></span><span

+            class="wh-icon-collapse-all" role="button"></span><span id="wh-toc-expand-all"

+            class="wh-icon-expand-all" role="button"></span><span

              class="wh-toc-spring"></span><span id="wh-toc-previous"

-            class="wh-icon-previous"></span><span id="wh-toc-next"

-            class="wh-icon-next"></span><span

+            class="wh-icon-previous" role="button"></span><span id="wh-toc-next"

+            class="wh-icon-next" role="button"></span><span

              class="wh-toc-spring"></span><span id="wh-toc-print"

-            class="wh-icon-print"></span></div>

+            class="wh-icon-print" role="button"></span></div>

            <div id="wh-toc-pane">

            </div>

          </div>

Cheers,

Michael

Mit freundlichen Grüßen

Michael Weigmann
Softwareentwicklung

--
HSH Soft- und Hardware Vertriebs GmbH
Rudolf-Diesel-Straße 2
16356 Ahrensfelde

Tel.: (Hotline)
Tel.: +49 30 94004-0 (Zentrale)
Fax:  +49 30 94004-110
Web: www.hsh-berlin.com <http://www.hsh-berlin.com>
E-Mail: [email protected] <mailto:[email protected]>

Handelsregister: HRB 7352 FF, Amtsgericht Frankfurt (Oder)
Geschäftsführer: Stephan Hauber



--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

--
Hussein SHAFIE, Product Manager, [email protected]
XMLmind Software, 35 rue Louis Leblanc, 78120 Rambouillet, France
Phone: +33 (0)9 52 80 80 37, Fax: +33 (0)9 57 80 80 37, www.xmlmind.com


--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to