Skip to content

Commit

Permalink
fix: link styles for mobile menu in subsites (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored Feb 23, 2024
1 parent 77ff653 commit a4af563
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
### Fix

- La descrizione nelle card per i punti di contatto non mostrano più tutte le iniziali in maiuscolo.
- Il colore dei link nel menu mobile è ora accessibile per tutti i temi.

## Versione 11.5.1 (19/02/2024)

Expand Down
2 changes: 1 addition & 1 deletion src/theme/ItaliaTheme/Components/_parentSiteMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
margin-top: 1.5rem;
margin-bottom: 1.5rem;
margin-left: 1.5rem;
background: rgba(92, 111, 130, 0.5);
background: rgba($primary, 0.5);
content: '';
}

Expand Down
2 changes: 1 addition & 1 deletion src/theme/ItaliaTheme/Subsites/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
);
@include bs-brandtext.text($subsite-primary, $subsite-primary-text);
@include bs-headernavbar.navbar($subsite-primary);
@include bs-headerslim.header($subsite-primary-text);
@include bs-headerslim.header($subsite-primary-text, $subsite-link-color);
@include bs-navigation.nav(
$subsite-light-theme,
$subsite-primary,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use '../../all_variables' as *;

@mixin header($subsite-primary-text) {
@mixin header($subsite-primary-text, $subsite-link-color) {
&.cms-ui .public-ui {
.it-header-slim-wrapper {
.it-header-slim-wrapper-content {
Expand Down Expand Up @@ -34,7 +34,7 @@
.parent-site-menu {
li.nav-item {
a.nav-link {
color: $subsite-primary-text;
color: $subsite-link-color;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,22 @@
.navbar-nav {
li a.nav-link {
font-size: 16px;
color: $subsite-link-color;

&.active {
border-left-color: $subsite-link-color;
}

svg {
fill: $subsite-link-color !important;
}
}
}

.it-socials ul li .icon {
fill: $subsite-link-color;
}

.link-list-wrapper {
ul li {
a {
Expand Down

0 comments on commit a4af563

Please sign in to comment.