mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
A11y: Add alt tags to all images (#602)
* A11y: Add alt tags to all images * Add newsfile
This commit is contained in:
parent
707ce0de2d
commit
188eb4004e
1
changelog.d/602.feature
Normal file
1
changelog.d/602.feature
Normal file
@ -0,0 +1 @@
|
||||
A11y: Add alt tags to all images.
|
@ -11,7 +11,7 @@ interface IProps {
|
||||
|
||||
export function ConnectionCard(props: IProps) {
|
||||
return <div className={style.card} onClick={props.onClick}>
|
||||
<img src={props.imageSrc} />
|
||||
<img alt="" src={props.imageSrc} />
|
||||
<div>
|
||||
<span>{props.serviceName}</span>
|
||||
<p>{props.description}</p>
|
||||
|
@ -6,7 +6,7 @@ const GitHubState: FunctionComponent<{config: BridgeRoomStateGitHub}> = ({ confi
|
||||
return <div class="container login-card">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<img src={config.identity.avatarUrl} title="GitHub avatar" />
|
||||
<img alt="GitHub avatar" src={config.identity.avatarUrl} />
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
Logged in as <span>{config.identity.name}</span>
|
||||
|
@ -4,6 +4,6 @@ import style from "./ErrorPane.module.scss";
|
||||
|
||||
export const ErrorPane: FunctionComponent<{header?: string}> = ({ children, header }) => {
|
||||
return <div class={`card error ${style.errorPane}`}>
|
||||
<p><strong><img src={ErrorBadge} /> { header || "Error occurred during widget load" }</strong>: {children}</p>
|
||||
<p><strong><img alt="error" src={ErrorBadge} /> { header || "Error occurred during widget load" }</strong>: {children}</p>
|
||||
</div>;
|
||||
};
|
@ -4,6 +4,6 @@ import style from "./WarningPane.module.scss";
|
||||
|
||||
export const WarningPane: FunctionComponent<{header?: string}> = ({ children, header }) => {
|
||||
return <div class={`card error ${style.warningPane}`}>
|
||||
<p><strong><img src={WarningBadge} /> { header || "Problem occurred during widget load" }</strong>: {children}</p>
|
||||
<p><strong><img alt="warning" src={WarningBadge} /> { header || "Problem occurred during widget load" }</strong>: {children}</p>
|
||||
</div>;
|
||||
};
|
@ -100,7 +100,7 @@ export const RoomConfig = function<SConfig, ConnectionType extends GetConnection
|
||||
)
|
||||
}
|
||||
<header className={style.header}>
|
||||
<img src={headerImg} />
|
||||
<img alt="" src={headerImg} />
|
||||
<h1>{text.header}</h1>
|
||||
</header>
|
||||
{ canEditRoom && <section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user