Use strong
over b
for improved a11y semantics
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
6b384fe9c1
commit
a6e98b0b63
35 changed files with 80 additions and 66 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>,
|
||||
},
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue