element-web/res/css/views/rooms
R Midhun Suresh cf8b87fd14
Add tabs to the right panel (#12672)
* Create new method for header button behaviour

With the introduction of tabs, the behaviour of the header buttons is
changed as follows:
- Close any right panel if open
- Open the correct right panel if no panel was open before

The old method (and behaviour) is retained as showOrHidePhase.

* Implement tabs in the right panel

There are three tabs: Info, People and Threads

* Remove unwanted code from RoomSummaryCard

- Remove the menu item for opening the memberlist since that is now
  taken of by the tabs.
- Remove the close button

* Remove code for focusing close button from tac item

See https://github.com/matrix-org/matrix-react-sdk/pull/12410

There's no longer a close button to focus so we instead focus the thread
tab. This is done in RightPaneltabs.tsx so we just need to remove this
code.

* Introduce a room info icon to the header

This was previously present in the legacy room header but not in the new
header.

* BaseCard changes

- Adds id, ariaLabelledBy and role props to implement tab accessibility.
- Adds hideHeaderButtons prop to hide header buttons (think back and
  close buttons).
- Change confusing header rendering code:
  header is not rendered ONLY when no header is passed AND
  hideHeaderButtons is true.

* Refactor repeated code into function

Created a new function createSpaceScopeHeader which returns the
component if the room is a space room. Previously this code was
duplicated in every component that uses SpaceScopeHeader component.

* Pass BaseCard attributes and use helper function

Actually using the code from the last two commits

* Add, update and remove tests/screenshots/snapshots

* Fix distance between search bar and tabs

* Update compound

* Update screenshots/snapshots
2024-07-09 11:36:50 +00:00
..
wysiwyg_composer Tooltip: Improve the accessibility of the composer and the rich text editor (#12459) 2024-05-15 08:32:53 +00:00
_AppsDrawer.pcss Use h tag for widget title instead of b tag (#12504) 2024-05-08 13:57:17 +00:00
_Autocomplete.pcss
_AuxPanel.pcss
_BasicMessageComposer.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_CallGuestLinkButton.pcss Call Guest Access, give user the option to change the acces level so they can generate a call link. (#12401) 2024-04-10 14:46:27 +00:00
_DecryptionFailureBar.pcss
_E2EIcon.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_EditMessageComposer.pcss
_EmojiButton.pcss
_EntityTile.pcss
_EventBubbleTile.pcss
_EventTile.pcss Fix stray background colour on markdown body (#12628) 2024-06-17 16:20:18 +00:00
_HistoryTile.pcss
_IRCLayout.pcss
_JumpToBottomButton.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_LegacyRoomHeader.pcss Fix E2E icon display in room header (#12545) 2024-05-20 16:08:50 +00:00
_LinkPreviewGroup.pcss
_LinkPreviewWidget.pcss
_LiveContentSummary.pcss
_MemberList.pcss Add tabs to the right panel (#12672) 2024-07-09 11:36:50 +00:00
_MessageComposer.pcss Update gfm.css to github-markdown-css (#12613) 2024-06-13 16:27:37 +00:00
_MessageComposerFormatBar.pcss Tooltip: Improve the accessibility of the composer and the rich text editor (#12459) 2024-05-15 08:32:53 +00:00
_NewRoomIntro.pcss
_NotificationBadge.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_PinnedEventTile.pcss
_PresenceLabel.pcss
_ReadReceiptGroup.pcss
_ReplyPreview.pcss
_ReplyTile.pcss
_RoomBreadcrumbs.pcss Tooltip: improve accessibility in room (#12493) 2024-05-07 10:20:46 +00:00
_RoomCallBanner.pcss
_RoomHeader.pcss Improve new room header accessibility (#12725) 2024-07-08 11:52:26 +00:00
_RoomInfoLine.pcss
_RoomKnocksBar.pcss
_RoomList.pcss
_RoomListHeader.pcss
_RoomPreviewBar.pcss
_RoomPreviewCard.pcss
_RoomSearchAuxPanel.pcss Redesign room search interface (#12677) 2024-07-08 09:57:41 +00:00
_RoomSublist.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_RoomTile.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_RoomUpgradeWarningBar.pcss
_SendMessageComposer.pcss
_SpaceScopeHeader.pcss
_Stickers.pcss
_ThirdPartyMemberInfo.pcss
_ThreadSummary.pcss
_TopUnreadMessagesBar.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_VoiceRecordComposerTile.pcss
_WhoIsTypingTile.pcss