Skip to content

Commit

Permalink
fix: used underlined style instead of arrow icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Apr 18, 2024
1 parent 4a09351 commit 5cafd5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/components/ItaliaTheme/Footer/FooterNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
LinkListItem,
} from 'design-react-kit/dist/design-react-kit';
import { SectionIcon } from 'design-comuni-plone-theme/components/ItaliaTheme';
import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
import config from '@plone/volto/registry';

const messages = defineMessages({
Expand Down Expand Up @@ -74,11 +73,9 @@ const FooterNavigation = () => {
title={
intl.formatMessage(messages.goToPage) + ': ' + item.title
}
className={markFooterLinks ? 'underlined' : ''}
>
{item.title}
{markFooterLinks && (
<Icon icon="it-arrow-right" color="white" size="sm" />
)}
</Link>
</h4>
{!config.settings.isFooterCollapsed && item.items && (
Expand Down
2 changes: 1 addition & 1 deletion src/config/italiaConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default function applyConfig(voltoConfig) {
splitMegamenuColumns: true, //se impostato a false, non spezza le colonne con intestazioni nel megamenu
footerNavigationDepth: 2, //valori possibili: [1,2]. Se impostato ad 1 non verranno mostrati nel footer i link agli elementi contenuti nelle sezioni di primo livello.
markSpecialLinks: true, // se impostato a false, non marca con icona i link esterni
markFooterLinks: false, // se impostato a true, viene aggiunta un'icona ai link del footer per renderli riconoscibili
markFooterLinks: true, // se impostato a true, viene aggiunta un'icona ai link del footer per renderli riconoscibili
},
appExtras: [
...config.settings.appExtras,
Expand Down
10 changes: 8 additions & 2 deletions theme/bootstrap-override/bootstrap-italia/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@

a {
font-weight: 700;
display: flex;
align-items: center;

&.underlined {
text-decoration: underline;

&:hover {
text-decoration: none;
}
}
}
}

Expand Down

0 comments on commit 5cafd5e

Please sign in to comment.