Skip to content

Commit

Permalink
feat: added id and title_it adttrs and handled h2 title_type in Galle…
Browse files Browse the repository at this point in the history
…ry component
  • Loading branch information
giuliaghisini committed Oct 31, 2023
1 parent b8d2e20 commit 4d5949e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/ItaliaTheme/View/Commons/Gallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ const messages = defineMessages({
const Gallery = ({
content,
folder_name,
id = '',
title,
title_type = 'h4',
title_id = 'galleria',
title_video,
className = '',
reactSlick,
Expand Down Expand Up @@ -121,12 +123,23 @@ const Gallery = ({
{images?.length > 0 ? (
<div
className={`it-carousel-wrapper it-carousel-landscape-abstract-three-cols ${className}`}
id={id}
>
<div className="slider-container">
<div className="it-header-block">
<div className="it-header-block-title">
{title_type === 'h4' && <h4 id="galleria">{gallery_title}</h4>}
{title_type === 'h5' && <h5 id="galleria">{gallery_title}</h5>}
{title_type === 'h2' && (
<h2 id={title_id} className="mb-3 h4">
{gallery_title}
</h2>
)}
{title_type === 'h3' && (
<h3 id={title_id} className="h5">
{gallery_title}
</h3>
)}
{title_type === 'h4' && <h4 id={title_id}>{gallery_title}</h4>}
{title_type === 'h5' && <h5 id={title_id}>{gallery_title}</h5>}
</div>
</div>
<div className="it-carousel-all it-card-bg">
Expand Down
5 changes: 5 additions & 0 deletions src/theme/ItaliaTheme/Views/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ div.sticky-wrapper {
}
}

#view .it-carousel-wrapper .it-header-block .it-header-block-title h2.h4 {
border-bottom: none;
padding-bottom: 0;
}

form.ui.form.vertical-form fieldset.invisible {
min-width: 0;
}
Expand Down

0 comments on commit 4d5949e

Please sign in to comment.