Use strong
element to semantically denote visually emphasised content (#12320)
* Use `strong` element to semantically denote visually emphasised content Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add comment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
91020b3d00
commit
26176116bf
8 changed files with 23 additions and 19 deletions
|
@ -1176,10 +1176,10 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
const memberCount = roomToLeave?.currentState.getJoinedMemberCount();
|
||||
if (memberCount === 1) {
|
||||
warnings.push(
|
||||
<span className="warning" key="only_member_warning">
|
||||
<strong className="warning" key="only_member_warning">
|
||||
{" " /* Whitespace, otherwise the sentences get smashed together */}
|
||||
{_t("leave_room_dialog|last_person_warning")}
|
||||
</span>,
|
||||
</strong>,
|
||||
);
|
||||
|
||||
return warnings;
|
||||
|
@ -1190,12 +1190,12 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
const rule = joinRules.getContent().join_rule;
|
||||
if (rule !== "public") {
|
||||
warnings.push(
|
||||
<span className="warning" key="non_public_warning">
|
||||
<strong className="warning" key="non_public_warning">
|
||||
{" " /* Whitespace, otherwise the sentences get smashed together */}
|
||||
{isSpace
|
||||
? _t("leave_room_dialog|space_rejoin_warning")
|
||||
: _t("leave_room_dialog|room_rejoin_warning")}
|
||||
</span>,
|
||||
</strong>,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue