-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: localization for logo text alternative #75
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
<Header /> | ||
<Header | ||
homepage={{ | ||
href: '/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Van @savitris begreep ik dat de link in het logo naar de homepage van de gemeente moet gaan, niet naar de homepage van Signalen. En dat het dus ook (voor screenreaders) duidelijk moet zijn naar welke homepage je gaat. Is "homepage" dan voldoende of moet hier ook specifieker staan dat het om de homepage van (in dit geval) Utrecht gaat? En moet er dan ook een melding bij dat je het formulier gaat verlaten?
label: t('homepage-label'), | ||
}} | ||
logo={{ | ||
src: '/assets/utrecht.webp', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import Image from 'next/image' | ||
|
||
const Header = () => { | ||
export interface HeaderProps { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vanwaar de keus voor hier een nieuw element toewijzen aan logoElement in plaats van bijvoorbeeld:
const Header = ({ homepage, logo }: HeaderProps) => {
const logoElement = (
<Logo>
<Image src={logo.src} alt={logo.label} width={275} height={150} />
</Logo>
);
return (
<header>
{homepage ? (
<Link boxContent href={homepage.href} aria-labelledby="logo-link-label">
<span id="logo-link-label" hidden>
{homepage.label}
</span>
{logoElement}
</Link>
) : (
logoElement
)}
</header>
);
};
Is dit sneller oid?
No description provided.