Skip to content

Commit

Permalink
fix: do not show empty headings if title in block is not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
deodorhunter committed Feb 6, 2024
1 parent b6ff543 commit 2d2c788
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
- ...
-->

## Versione x.x.x (xx/xx/xxxx)

### Fix

- [ Accessibilità ] Rimossi gli heading per alcuni blocchi nel caso il titolo non sia presente al fine di migliorare l'esperienza con l'uso di screen reader

## Versione 7.24.2 (11/01/2024)

### Migliorie
Expand Down
4 changes: 3 additions & 1 deletion src/components/ItaliaTheme/Blocks/CountDown/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ const Body = ({ block, sections }) => {
<SearchSectionsBackground />
<div className="container">
<div className="searchContainer d-flex w-100">
<h2 className="text-secondary mb-4">{block.title}</h2>
{block.title && (
<h2 className="text-secondary mb-4">{block.title}</h2>
)}
<div className="searchbar lightgrey-bg-c2 shadow-sm rounded d-flex w-100">
<input
className="inputSearch lightgrey-bg-c2"
Expand Down
4 changes: 3 additions & 1 deletion src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const Body = ({ block, sections }) => {
)}
<div className="container">
<div className="searchContainer d-flex w-100">
<h2 className="text-secondary mb-4">{block.title}</h2>
{block.title && (
<h2 className="search-section-title mb-4">{block.title}</h2>
)}
<div className="searchbar lightgrey-bg-c2 shadow-sm rounded d-flex w-100">
<input
className="inputSearch lightgrey-bg-c2"
Expand Down

0 comments on commit 2d2c788

Please sign in to comment.