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
|
@ -188,8 +188,8 @@ export default class SetIdServer extends React.Component<IProps, IState> {
|
|||
"identity_server|change_prompt",
|
||||
{},
|
||||
{
|
||||
current: (sub) => <b>{abbreviateUrl(currentClientIdServer)}</b>,
|
||||
new: (sub) => <b>{abbreviateUrl(idServer)}</b>,
|
||||
current: (sub) => <strong>{abbreviateUrl(currentClientIdServer)}</strong>,
|
||||
new: (sub) => <strong>{abbreviateUrl(idServer)}</strong>,
|
||||
},
|
||||
),
|
||||
button: _t("action|continue"),
|
||||
|
@ -235,7 +235,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
|
|||
unboundMessage: _t(
|
||||
"identity_server|disconnect_server",
|
||||
{},
|
||||
{ idserver: (sub) => <b>{abbreviateUrl(this.state.currentClientIdServer)}</b> },
|
||||
{ idserver: (sub) => <strong>{abbreviateUrl(this.state.currentClientIdServer)}</strong> },
|
||||
),
|
||||
button: _t("action|disconnect"),
|
||||
});
|
||||
|
@ -278,8 +278,8 @@ export default class SetIdServer extends React.Component<IProps, IState> {
|
|||
let message;
|
||||
let danger = false;
|
||||
const messageElements = {
|
||||
idserver: (sub: string) => <b>{abbreviateUrl(currentClientIdServer)}</b>,
|
||||
b: (sub: string) => <b>{sub}</b>,
|
||||
idserver: (sub: string) => <strong>{abbreviateUrl(currentClientIdServer)}</strong>,
|
||||
b: (sub: string) => <strong>{sub}</strong>,
|
||||
};
|
||||
if (!currentServerReachable) {
|
||||
message = (
|
||||
|
@ -356,13 +356,13 @@ export default class SetIdServer extends React.Component<IProps, IState> {
|
|||
bodyText = _t(
|
||||
"identity_server|description_connected",
|
||||
{},
|
||||
{ server: (sub) => <b>{abbreviateUrl(idServerUrl)}</b> },
|
||||
{ server: (sub) => <strong>{abbreviateUrl(idServerUrl)}</strong> },
|
||||
);
|
||||
if (this.props.missingTerms) {
|
||||
bodyText = _t(
|
||||
"identity_server|change_server_prompt",
|
||||
{},
|
||||
{ server: (sub) => <b>{abbreviateUrl(idServerUrl)}</b> },
|
||||
{ server: (sub) => <strong>{abbreviateUrl(idServerUrl)}</strong> },
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue