UX: Add chevron icons for expanding and collapsing all toggles in the admin sidebar (#26246)

This commit is contained in:
Ella E 2024-03-20 17:25:14 -06:00 committed by GitHub
parent 058b70c82f
commit ef2a9da8e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -78,6 +78,8 @@ module SvgSprite
discourse-sparkles
discourse-threads
discourse-sidebar
discourse-chevron-collapse
discourse-chevron-expand
download
ellipsis-h
ellipsis-v

View File

@ -76,4 +76,12 @@ Additional SVG icons
<symbol id="discourse-sidebar" viewBox="0 0 513 513">
<path fill-rule="evenodd" clip-rule="evenodd" d="M64.125 0C28.0547 0 0 29.0566 0 64.125V399.75C0 435.82 28.0547 463.875 64.125 463.875H448.875C483.943 463.875 513 435.82 513 399.75V64.125C513 29.0566 483.943 0 448.875 0H64.125ZM219.375 407.75H56.125V56.1875H219.375V407.75ZM272.5 56.1875H455.875V407.75H272.5V56.1875ZM96 96C91.5817 96 88 99.5817 88 104V128C88 132.418 91.5817 136 96 136H184C188.418 136 192 132.418 192 128V104C192 99.5817 188.418 96 184 96H96ZM88 184C88 179.582 91.5817 176 96 176H184C188.418 176 192 179.582 192 184V208C192 212.418 188.418 216 184 216H96C91.5817 216 88 212.418 88 208V184ZM96 256C91.5817 256 88 259.582 88 264V288C88 292.418 91.5817 296 96 296H184C188.418 296 192 292.418 192 288V264C192 259.582 188.418 256 184 256H96Z"/>
</symbol>
<symbol id="discourse-chevron-collapse" viewBox="0 0 512 512">
<path d="M256.483 296.229C247.794 296.229 240.071 299.122 234.278 304.908L79.8128 459.202C67.2624 470.774 67.2624 491.026 79.8128 502.598C91.3977 515.134 111.671 515.134 123.256 502.598L256.483 370.483L388.744 502.598C400.329 515.134 420.602 515.134 432.187 502.598C444.738 491.026 444.738 470.774 432.187 459.202L277.722 304.908C271.929 299.122 264.206 296.229 256.483 296.229Z"/>
<path d="M256.483 215.771C247.794 215.771 240.071 212.878 234.278 207.092L79.8128 52.7977C67.2624 41.2256 67.2624 20.9744 79.8128 9.40233C91.3977 -3.13411 111.671 -3.13411 123.256 9.40233L256.483 141.517L388.744 9.40233C400.329 -3.13411 420.602 -3.13411 432.187 9.40233C444.738 20.9744 444.738 41.2256 432.187 52.7977L277.722 207.092C271.929 212.878 264.206 215.771 256.483 215.771Z"/>
</symbol>
<symbol id="discourse-chevron-expand" viewBox="0 0 512 512">
<path d="M256.483 512C247.794 512 240.071 509.107 234.278 503.321L79.8128 349.026C67.2624 337.454 67.2624 317.203 79.8128 305.631C91.3977 293.094 111.671 293.094 123.256 305.631L256.483 437.746L388.744 305.631C400.329 293.094 420.602 293.094 432.187 305.631C444.738 317.203 444.738 337.454 432.187 349.026L277.722 503.321C271.929 509.107 264.206 512 256.483 512Z"/>
<path d="M256.483 0C247.794 0 240.071 2.89303 234.278 8.67907L79.8128 162.974C67.2624 174.546 67.2624 194.797 79.8128 206.369C91.3977 218.906 111.671 218.906 123.256 206.369L256.483 74.2543L388.744 206.369C400.329 218.906 420.602 218.906 432.187 206.369C444.738 194.797 444.738 174.546 432.187 162.974L277.722 8.67907C271.929 2.89303 264.206 0 256.483 0Z"/>
</symbol>
</svg>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 14 KiB