Skip to content

Commit

Permalink
fix(a11y): more improvements (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fupete authored Dec 13, 2024
1 parent 55dac5b commit ebf7224
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ListArchiveDSTags() {
`);

return (
<section className="pb-5" aria-describedby="archive-list-title">
<section className="pb-5" aria-labelledby="archive-list-title">
<div className="d-md-flex flex-row align-items-center">
<h3 className="border-end pe-4" id="archive-list-title">
Esplora per utilizzo
Expand Down
2 changes: 1 addition & 1 deletion src/components/list-archive-events/list-archive-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ListArchiveEvents({ background, noSpace }) {
});

return (
<section className={styles} aria-describedby="archive-list-title">
<section className={styles} aria-labelledby="archive-list-title">
<div className="container-xxl">
<div className="row">
<div className="col-12 g-0">
Expand Down
2 changes: 1 addition & 1 deletion src/components/list-archive-media/list-archive-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function ListArchiveMedia({ background, noSpace }) {
};

return (
<section className={styles} aria-describedby="archive-list-title">
<section className={styles} aria-labelledby="archive-list-title">
<div className="container-xxl">
<div className="row">
<div className="col-12 g-0">
Expand Down
2 changes: 1 addition & 1 deletion src/components/list-archive-news/list-archive-news.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ListArchiveNews({ background, noSpace }) {
});

return (
<section className={styles} aria-describedby="archive-list-title">
<section className={styles} aria-labelledby="archive-list-title">
<div className="container-xxl">
<div className="row">
<div className="col-12 g-0">
Expand Down
1 change: 1 addition & 0 deletions src/components/search-main/search-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function SearchMain({ location, maxResults, title, suggest }) {
<div
className="search-main-content px-3 py-5 px-lg-0 px-lg-5 py-lg-6"
role="search"
aria-labelledby="searchHomeTitle"
>
{title && (
<div className="text-container mb-5">
Expand Down
4 changes: 3 additions & 1 deletion src/data/content/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ components:

sectionIntro:
title: In evidenza
id: HLsTitle
subtitle: Storie da copertina che ti guidano alle ultime attività
isHome: true

Expand Down Expand Up @@ -129,7 +130,7 @@ components:
addonStyle: mb-3

highlightCards:
id: strumenti
id: toolsTitle
title: "Crea servizi pubblici digitali con strumenti pronti all'uso" #C
text: Hai a tua disposizione la cassetta degli attrezzi per realizzare servizi semplici, accessibili, inclusivi, che riducono le disuguaglianze e rispettano le norme. #C
background: white
Expand Down Expand Up @@ -198,6 +199,7 @@ components:
# alt: Alt lorem ipsum #C

sectionIntroImg:
id: communityTitle
title: Prendi parte alla community
subtitle: Contribuisci a Designers Italia, partecipa agli eventi e confrontati sulle buone pratiche del settore pubblico.
background: light
Expand Down
1 change: 1 addition & 0 deletions src/pages/{content.relativePath}.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ export const query = graphql`
}
}
sectionIntroImg {
id
title
subtitle
background
Expand Down

0 comments on commit ebf7224

Please sign in to comment.