Use strong over b for improved a11y semantics

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-09-13 12:09:41 +01:00
parent 6b384fe9c1
commit a6e98b0b63
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D
35 changed files with 80 additions and 66 deletions

View file

@ -97,7 +97,7 @@ const NewRoomIntro: React.FC = () => {
introMessage,
{},
{
displayName: () => <b>{displayName}</b>,
displayName: () => <strong>{displayName}</strong>,
},
)}
</p>
@ -241,7 +241,7 @@ const NewRoomIntro: React.FC = () => {
"room|intro|start_of_room",
{},
{
roomName: () => <b>{room.name}</b>,
roomName: () => <strong>{room.name}</strong>,
},
)}
</p>

View file

@ -95,7 +95,7 @@ const RoomPreviewCard: FC<IProps> = ({ room, onJoinButtonClicked, onRejectButton
"room|invites_you_text",
{},
{
inviter: () => <b>{inviter?.name || inviteSender}</b>,
inviter: () => <strong>{inviter?.name || inviteSender}</strong>,
},
)}
</div>

View file

@ -38,7 +38,7 @@ const RoomSearchAuxPanel: React.FC<Props> = ({ searchInfo, isRoomEncrypted, onSe
_t(
"room|search|summary",
{ count: searchInfo.count },
{ query: () => <b>{searchInfo.term}</b> },
{ query: () => <strong>{searchInfo.term}</strong> },
)
) : (
<InlineSpinner />

View file

@ -69,7 +69,7 @@ export default class RoomUpgradeWarningBar extends React.PureComponent<IProps, I
"room_settings|advanced|room_upgrade_warning",
{},
{
b: (sub) => <b>{sub}</b>,
b: (sub) => <strong>{sub}</strong>,
i: (sub) => <i>{sub}</i>,
},
)}