mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-12 16:33:27 +00:00
A11Y: improve expand/collapse labeling on embedded solution post (#381)
This commit is contained in:
parent
e4b4a97d9e
commit
0f03ec45c8
@ -128,14 +128,17 @@ export default class SolvedAcceptedAnswer extends Component {
|
||||
<div class="quote-controls">
|
||||
<button
|
||||
aria-controls={{this.quoteId}}
|
||||
aria-expanded={{this.expanded}}
|
||||
aria-expanded={{if this.expanded "true" "false"}}
|
||||
class="quote-toggle btn-flat"
|
||||
type="button"
|
||||
>
|
||||
{{icon
|
||||
(if this.expanded "chevron-up" "chevron-down")
|
||||
title="post.expand_collapse"
|
||||
aria-label={{if
|
||||
this.expanded
|
||||
(i18n "post.collapse")
|
||||
(i18n "expand")
|
||||
}}
|
||||
title={{if this.expanded (i18n "post.collapse") (i18n "expand")}}
|
||||
>
|
||||
{{icon (if this.expanded "chevron-up" "chevron-down")}}
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user