Normalize the name of buttons on MessageActionBar (#8781)

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
pull/28788/head^2
Suguru Hirahara 2022-06-08 09:53:58 +00:00 committed by GitHub
parent aedbeb2995
commit c016815562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -149,11 +149,11 @@ limitations under the License.
mask-image: url('$(res)/img/element-icons/collapse-message.svg'); mask-image: url('$(res)/img/element-icons/collapse-message.svg');
} }
&.mx_MessageActionBar_viewInRoom::after { &.mx_MessageActionBar_viewInRoomButton::after {
mask-image: url('$(res)/img/element-icons/view-in-room.svg'); mask-image: url('$(res)/img/element-icons/view-in-room.svg');
} }
&.mx_MessageActionBar_copyLinkToThread::after { &.mx_MessageActionBar_copyLinkButton::after {
mask-image: url('$(res)/img/element-icons/link.svg'); mask-image: url('$(res)/img/element-icons/link.svg');
} }
} }

View File

@ -1372,13 +1372,13 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
</div> </div>
<Toolbar className="mx_MessageActionBar" aria-label={_t("Message Actions")} aria-live="off"> <Toolbar className="mx_MessageActionBar" aria-label={_t("Message Actions")} aria-live="off">
<RovingAccessibleTooltipButton <RovingAccessibleTooltipButton
className="mx_MessageActionBar_maskButton mx_MessageActionBar_viewInRoom" className="mx_MessageActionBar_maskButton mx_MessageActionBar_viewInRoomButton"
onClick={this.viewInRoom} onClick={this.viewInRoom}
title={_t("View in room")} title={_t("View in room")}
key="view_in_room" key="view_in_room"
/> />
<RovingAccessibleTooltipButton <RovingAccessibleTooltipButton
className="mx_MessageActionBar_maskButton mx_MessageActionBar_copyLinkToThread" className="mx_MessageActionBar_maskButton mx_MessageActionBar_copyLinkButton"
onClick={this.copyLinkToThread} onClick={this.copyLinkToThread}
title={_t("Copy link to thread")} title={_t("Copy link to thread")}
key="copy_link_to_thread" key="copy_link_to_thread"