mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Sign-up server rules: Show different icon on toggle button when description is expanded (#38293)
This commit is contained in:
@@ -85,6 +85,11 @@ $fluid-breakpoint: $maximum-width + 20px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
&[aria-expanded='true'] .icon-expand,
|
||||
&[aria-expanded='false'] .icon-collapse {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 1lh;
|
||||
height: 1lh;
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
.rules-list__hint{ tabIndex: -1 }
|
||||
%span.rules-list__hint-text= rule_translation.hint
|
||||
%button.rules-list__toggle-button{ type: 'button', hidden: true, 'aria-expanded': 'false' }
|
||||
= material_symbol('more_horiz')
|
||||
= material_symbol('keyboard_arrow_up', { class: 'icon-collapse' })
|
||||
= material_symbol('more_horiz', { class: 'icon-expand' })
|
||||
%span.sr-only= t('auth.rules.read_more')
|
||||
|
||||
Reference in New Issue
Block a user