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

Commit

Permalink
Use semantically correct elements for room sublist context menu (#10831)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored May 9, 2023
1 parent 0836886 commit 339e7da
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 339e7da

Please sign in to comment.