mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
Merge pull request #17 from brianlovin/lighthouse
Fix accessibility issues
This commit is contained in:
commit
1472a8b9aa
3 changed files with 9 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ export const AppRow = ({ app }: Props) => {
|
|||
return (
|
||||
<AppRowContainer href={app.url} target="_blank" rel="noopener noreferrer">
|
||||
<AppMeta>
|
||||
{app.image && <AppIcon src={app.image} />}
|
||||
{app.image && <AppIcon alt={app.name} src={app.image} />}
|
||||
<AppName>{app.name}</AppName>
|
||||
</AppMeta>
|
||||
{sourcesKeys && (
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// @flow
|
||||
import * as React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Container, ButtonRowContainer } from './style';
|
||||
import { Container, ButtonRowContainer, Label } from './style';
|
||||
import { PrimaryButton, GhostButton } from '../Button';
|
||||
import Logo from './Logo';
|
||||
|
||||
|
|
@ -16,6 +16,7 @@ export default function Header(props: Props) {
|
|||
<Container showHeaderShadow={showHeaderShadow} data-cy="header">
|
||||
<Link href="/">
|
||||
<a style={{ display: 'flex', alignItems: 'center' }}>
|
||||
<Label>Security Checklist</Label>
|
||||
<Logo />
|
||||
</a>
|
||||
</Link>
|
||||
|
|
|
|||
|
|
@ -42,3 +42,9 @@ export const ButtonRowContainer = styled.div`
|
|||
grid-area: actions;
|
||||
align-items: center;
|
||||
`;
|
||||
|
||||
export const Label = styled.h1`
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
visibility: none;
|
||||
`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue