Skip to content

Commit

Permalink
added Clickables, Forms and Document improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Oct 10, 2023
1 parent 7980b3e commit 7bf8b07
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pwa/src/templates/jumbotronTemplate/JumbotronTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ export const JumbotronTemplate: React.FC = () => {
const { t } = useTranslation();

return (
<div style={{ backgroundImage: `url(${process.env.GATSBY_JUMBOTRON_IMAGE_URL})` }} className={styles.wrapper}>
<div
aria-label={t("Jumbotron")}
role="contentinfo"
style={{ backgroundImage: `url(${process.env.GATSBY_JUMBOTRON_IMAGE_URL})` }}
className={styles.wrapper}
>
<Page>
<PageContent>
<div>
Expand Down
3 changes: 3 additions & 0 deletions pwa/src/templates/templateParts/filters/FiltersTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const FiltersTemplate: React.FC<FiltersTemplateProps> = ({ isLoading }) =
name="title"
placeholder={`${t("Search")}..`}
defaultValue={filters._search}
aria-label={t("Search")}
{...{ register, errors }}
/>
<SelectSingle
Expand All @@ -63,6 +64,7 @@ export const FiltersTemplate: React.FC<FiltersTemplateProps> = ({ isLoading }) =
placeholder={t("Year")}
isClearable
{...{ register, errors, control }}
aria-label={t("Select year")}
/>
<SelectSingle
options={TEMP_PUBLICATION_TYPES}
Expand All @@ -71,6 +73,7 @@ export const FiltersTemplate: React.FC<FiltersTemplateProps> = ({ isLoading }) =
defaultValue={TEMP_PUBLICATION_TYPES.find((option) => option.value === filters.Categorie)}
isClearable
{...{ register, errors, control }}
aria-label={t("Select category")}
/>

<Button type="submit" className={styles.button} disabled={isLoading}>
Expand Down
1 change: 1 addition & 0 deletions pwa/src/templates/templateParts/footer/FooterTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const DynamicSection: React.FC<{ content: TDynamicContentItem }> = ({ content })
onClick={() => navigate(item.link ?? "")}
tabIndex={0}
aria-label={`${t(item.label)}, ${t(item.value)}`}
role="button"
>
{item.value}
</Link>
Expand Down
3 changes: 3 additions & 0 deletions pwa/src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ export const en = {
"Skip to footer content": "Skip to footer content",
"Phone number": "Phone number",
"Email address": "Email address",
"Select year": "Select year",
"Select category": "Select category",

};
2 changes: 2 additions & 0 deletions pwa/src/translations/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ export const nl = {
"Skip to footer content": "Ga naar de voettekst",
"Phone number": "Telefoonnummer",
"Email address": "E-mailadres",
"Select year": "Selecteer jaar",
"Select category": "Selecteer categorie",
};

0 comments on commit 7bf8b07

Please sign in to comment.