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 Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
_AuxPanel.pcss Deprecate lab experiment 'feature_state_counters' (#11343) 2023-11-30 08:19:16 +00:00
_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 Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
_E2EIcon.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_EditMessageComposer.pcss Refine styles of controls to match Compound (#12299) 2024-03-05 04:25:47 +00:00
_EmojiButton.pcss Refine styles of controls to match Compound (#12299) 2024-03-05 04:25:47 +00:00
_EntityTile.pcss Implement new unreachable state and fix broken string ref (#11748) 2023-11-07 10:14:30 +00:00
_EventBubbleTile.pcss Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
_EventTile.pcss Fix stray background colour on markdown body (#12628) 2024-06-17 16:20:18 +00:00
_HistoryTile.pcss Apply prettier formatting 2022-12-12 12:24:14 +01:00
_IRCLayout.pcss Remove TODO comments about spacing variables (#10695) 2023-06-06 14:03:52 +00:00
_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 Remove focus-visible polyfill (#11677) 2023-09-28 11:52:26 +00:00
_LinkPreviewWidget.pcss Fix url preview AXE and layout issue & add percy test (#9189) 2022-08-17 16:07:18 +00:00
_LiveContentSummary.pcss Apply prettier formatting 2022-12-12 12:24:14 +01:00
_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 Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
_NotificationBadge.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_PinnedEventTile.pcss Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
_PresenceLabel.pcss Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
_ReadReceiptGroup.pcss Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
_ReplyPreview.pcss Issue Fix: Misaligned reply preview in thread composer (#9977) 2023-01-25 08:51:07 +01:00
_ReplyTile.pcss Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
_RoomBreadcrumbs.pcss Tooltip: improve accessibility in room (#12493) 2024-05-07 10:20:46 +00:00
_RoomCallBanner.pcss Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
_RoomHeader.pcss Improve new room header accessibility (#12725) 2024-07-08 11:52:26 +00:00
_RoomInfoLine.pcss Refine styles of controls to match Compound (#12299) 2024-03-05 04:25:47 +00:00
_RoomKnocksBar.pcss Introduce room knocks bar (#11475) 2023-08-31 13:43:38 +00:00
_RoomList.pcss Remove some obsolete CSS rules (#10754) 2023-05-03 13:26:10 +00:00
_RoomListHeader.pcss Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
_RoomPreviewBar.pcss Make invitation dialog scrollable when infos are too long (#11753) 2023-10-24 16:06:44 +00:00
_RoomPreviewCard.pcss Change avatar to use Compound implementation (#11448) 2023-08-24 03:48:35 +00:00
_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 Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
_SendMessageComposer.pcss Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
_SpaceScopeHeader.pcss Fix: Space scope header overflow (#11933) 2023-11-29 08:25:34 +00:00
_Stickers.pcss Remove some obsolete CSS rules (#10754) 2023-05-03 13:26:10 +00:00
_ThirdPartyMemberInfo.pcss Fix: Space scope header overflow (#11933) 2023-11-29 08:25:34 +00:00
_ThreadSummary.pcss Don't reference the notification levels by colour (#12138) 2024-01-15 15:25:48 +00:00
_TopUnreadMessagesBar.pcss Refine the colors of some more components (#12343) 2024-03-18 15:47:55 +00:00
_VoiceRecordComposerTile.pcss Apply prettier formatting 2022-12-12 12:24:14 +01:00
_WhoIsTypingTile.pcss Change avatar to use Compound implementation (#11448) 2023-08-24 03:48:35 +00:00