fix: dot menu accessibility (#23133)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
466304e653
Коммит
ac35bdff68
@@ -9,7 +9,7 @@ Object {
|
||||
aria-controls="CENTER_dropdown_post_id_1"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
aria-label="Actions"
|
||||
aria-label="more"
|
||||
class="post-menu__item"
|
||||
data-testid="PostDotMenu-Button-post_id_1"
|
||||
id="CENTER_button_post_id_1"
|
||||
@@ -34,7 +34,7 @@ Object {
|
||||
aria-controls="CENTER_dropdown_post_id_1"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
aria-label="Actions"
|
||||
aria-label="more"
|
||||
class="post-menu__item"
|
||||
data-testid="PostDotMenu-Button-post_id_1"
|
||||
id="CENTER_button_post_id_1"
|
||||
@@ -121,7 +121,7 @@ exports[`components/dot_menu/DotMenu should match snapshot, on Center 1`] = `
|
||||
}
|
||||
menuButton={
|
||||
Object {
|
||||
"aria-label": "Actions",
|
||||
"aria-label": "more",
|
||||
"children": <DotsHorizontalIcon
|
||||
size={16}
|
||||
/>,
|
||||
|
||||
@@ -497,7 +497,7 @@ export class DotMenuClass extends React.PureComponent<Props, State> {
|
||||
class: classNames('post-menu__item', {
|
||||
'post-menu__item--active': this.props.isMenuOpen,
|
||||
}),
|
||||
'aria-label': formatMessage({id: 'post_info.dot_menu.tooltip.actions', defaultMessage: 'Actions'}),
|
||||
'aria-label': formatMessage({id: 'post_info.dot_menu.tooltip.more', defaultMessage: 'More'}).toLowerCase(),
|
||||
children: <DotsHorizontalIcon size={16}/>,
|
||||
}}
|
||||
menu={{
|
||||
|
||||
@@ -4481,7 +4481,6 @@
|
||||
"post_info.comment_icon.tooltip.reply": "Reply",
|
||||
"post_info.copy": "Copy Text",
|
||||
"post_info.del": "Delete",
|
||||
"post_info.dot_menu.tooltip.actions": "Actions",
|
||||
"post_info.dot_menu.tooltip.more": "More",
|
||||
"post_info.edit": "Edit",
|
||||
"post_info.edit.aria_label": "Select to restore an old message.",
|
||||
|
||||
Ссылка в новой задаче
Block a user