Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Use semantically correct elements for room sublist context menu #10831

Merged
merged 1 commit into from
May 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/views/rooms/RoomSublist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ export default class RoomSublist extends React.Component<IProps, IState> {
otherSections = (
<React.Fragment>
<hr />
<div>
<div className="mx_RoomSublist_contextMenu_title">{_t("Appearance")}</div>
<fieldset>
<legend className="mx_RoomSublist_contextMenu_title">{_t("Appearance")}</legend>
<StyledMenuItemCheckbox
onClose={this.onCloseMenu}
onChange={this.onUnreadFirstChanged}
Expand All @@ -593,7 +593,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
>
{_t("Show previews of messages")}
</StyledMenuItemCheckbox>
</div>
</fieldset>
</React.Fragment>
);
}
Expand All @@ -606,8 +606,8 @@ export default class RoomSublist extends React.Component<IProps, IState> {
onFinished={this.onCloseMenu}
>
<div className="mx_RoomSublist_contextMenu">
<div>
<div className="mx_RoomSublist_contextMenu_title">{_t("Sort by")}</div>
<fieldset>
<legend className="mx_RoomSublist_contextMenu_title">{_t("Sort by")}</legend>
<StyledMenuItemRadio
onClose={this.onCloseMenu}
onChange={() => this.onTagSortChanged(SortAlgorithm.Recent)}
Expand All @@ -624,7 +624,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
>
{_t("A-Z")}
</StyledMenuItemRadio>
</div>
</fieldset>
{otherSections}
</div>
</ContextMenu>
Expand Down