diff --git a/playwright/snapshots/room/room-header.spec.ts/room-header-highlighted-linux.png b/playwright/snapshots/room/room-header.spec.ts/room-header-highlighted-linux.png index 5fa24a887f..c792c4bcf0 100644 Binary files a/playwright/snapshots/room/room-header.spec.ts/room-header-highlighted-linux.png and b/playwright/snapshots/room/room-header.spec.ts/room-header-highlighted-linux.png differ diff --git a/playwright/snapshots/room/room-header.spec.ts/room-header-with-apps-button-not-highlighted-linux.png b/playwright/snapshots/room/room-header.spec.ts/room-header-with-apps-button-not-highlighted-linux.png index 84eb8fcccc..51fb245f60 100644 Binary files a/playwright/snapshots/room/room-header.spec.ts/room-header-with-apps-button-not-highlighted-linux.png and b/playwright/snapshots/room/room-header.spec.ts/room-header-with-apps-button-not-highlighted-linux.png differ diff --git a/src/components/views/right_panel/HeaderButton.tsx b/src/components/views/right_panel/HeaderButton.tsx index 4fb8c1b513..bfe463c6bf 100644 --- a/src/components/views/right_panel/HeaderButton.tsx +++ b/src/components/views/right_panel/HeaderButton.tsx @@ -21,9 +21,7 @@ limitations under the License. import React, { ReactNode } from "react"; import classNames from "classnames"; -import AccessibleTooltipButton from "../elements/AccessibleTooltipButton"; -import { ButtonEvent } from "../elements/AccessibleButton"; -import { Alignment } from "../elements/Tooltip"; +import AccessibleButton, { ButtonEvent } from "../elements/AccessibleButton"; interface IProps { // Whether this button is highlighted @@ -52,11 +50,11 @@ export default class HeaderButton extends React.Component { }); return ( - diff --git a/src/components/views/right_panel/RoomSummaryCard.tsx b/src/components/views/right_panel/RoomSummaryCard.tsx index d288541f5c..13f77eff14 100644 --- a/src/components/views/right_panel/RoomSummaryCard.tsx +++ b/src/components/views/right_panel/RoomSummaryCard.tsx @@ -49,7 +49,6 @@ import WidgetUtils from "../../../utils/WidgetUtils"; import { IntegrationManagers } from "../../../integrations/IntegrationManagers"; import SettingsStore from "../../../settings/SettingsStore"; import WidgetAvatar from "../avatars/WidgetAvatar"; -import AccessibleTooltipButton from "../elements/AccessibleTooltipButton"; import WidgetStore, { IApp } from "../../../stores/WidgetStore"; import { E2EStatus } from "../../../utils/ShieldUtils"; import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks"; @@ -184,18 +183,17 @@ const AppRow: React.FC = ({ app, room }) => { return (
- {name} {subtitle} - + {canModifyWidget && ( = ({ app, room }) => { /> )} - - @@ -13,6 +14,7 @@ exports[`LegacyRoomHeaderButtons-test.tsx should render 1`] = ` aria-current="false" aria-label="Threads" class="mx_AccessibleButton mx_LegacyRoomHeader_button mx_RightPanel_threadsButton" + data-state="closed" data-testid="threadsButton" role="button" tabindex="0" @@ -21,6 +23,7 @@ exports[`LegacyRoomHeaderButtons-test.tsx should render 1`] = ` aria-current="false" aria-label="Room info" class="mx_AccessibleButton mx_LegacyRoomHeader_button mx_RightPanel_roomSummaryButton" + data-state="closed" role="button" tabindex="0" />