mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
[A11Y] Add aria-label to dropdown toggles (#2668)
Implement custom accessible dropdown toggle labels for forum components Making the a11y label more specific to the specific action it performs is critical for good UX with assistive technologies.
This commit is contained in:
@@ -87,6 +87,7 @@ export default class DiscussionListItem extends Component {
|
||||
icon: 'fas fa-ellipsis-v',
|
||||
className: 'DiscussionListItem-controls',
|
||||
buttonClassName: 'Button Button--icon Button--flat Slidable-underneath Slidable-underneath--right',
|
||||
accessibleToggleLabel: app.translator.trans('core.forum.discussion_controls.toggle_dropdown_accessible_label'),
|
||||
},
|
||||
controls
|
||||
)
|
||||
|
Reference in New Issue
Block a user