Closed martyanovandrey closed 2 months ago
We currently use <div> tags for collapsible content sections.
<div>
<div class="yfm-cut open"> <div class="yfm-cut-title">Cut header</div> <div class="yfm-cut-content"> <p>Content displayed when clicked.</p> </div> </div>
I propose refactoring these to use HTML's <details> tag to enhance accessibility, usability, and maintainability.
<details>
<details> <summary>Cut header</summary> Content displayed when clicked. </details>
done https://github.com/diplodoc-platform/transform/pull/476
We currently use
<div>
tags for collapsible content sections.I propose refactoring these to use HTML's
<details>
tag to enhance accessibility, usability, and maintainability.Justification:
<details>
provides built-in keyboard and screen reader support, aligning with WCAG standards.