Fix word wraps for disclosure

This commit is contained in:
Lewis Dale 2023-10-12 09:21:43 +01:00
parent 62ff9e8f77
commit 0ee928a737

View File

@ -45,7 +45,9 @@
</style>
<details>
<summary>Test Title <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7">
<summary>
Test Title
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7">
<path
fill="none"
fillRule="evenodd"
@ -53,8 +55,7 @@
strokeWidth="2"
d="M1 1l4.025 4L9 1.05"
/>
</svg>
</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