Fix word wraps for disclosure

This commit is contained in:
Lewis Dale 2023-10-12 09:21:43 +01:00
parent 62ff9e8f77
commit 0ee928a737
1 changed files with 12 additions and 11 deletions

View File

@ -45,16 +45,17 @@
</style>
<details>
<summary>Test Title <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7">
<path
fill="none"
fillRule="evenodd"
stroke="currentColor"
strokeWidth="2"
d="M1 1l4.025 4L9 1.05"
/>
</svg>
<summary>
Test Title
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7">
<path
fill="none"
fillRule="evenodd"
stroke="currentColor"
strokeWidth="2"
d="M1 1l4.025 4L9 1.05"
/>
</svg>
</summary>
<ul>
@ -85,7 +86,7 @@
</ul>
</details>
* 57 lines of code
* 58 lines of code
* Keyboard & screen reader support
* `open` attribute lets us style the summary differently if it's open or closed