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,7 +45,9 @@
</style> </style>
<details> <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 <path
fill="none" fill="none"
fillRule="evenodd" fillRule="evenodd"
@ -53,8 +55,7 @@
strokeWidth="2" strokeWidth="2"
d="M1 1l4.025 4L9 1.05" d="M1 1l4.025 4L9 1.05"
/> />
</svg> </svg>
</summary> </summary>
<ul> <ul>
@ -85,7 +86,7 @@
</ul> </ul>
</details> </details>
* 57 lines of code * 58 lines of code
* Keyboard & screen reader support * Keyboard & screen reader support
* `open` attribute lets us style the summary differently if it's open or closed * `open` attribute lets us style the summary differently if it's open or closed