Skip to content

Commit

Permalink
Switch to using inset box-shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieroberto committed Nov 6, 2024
1 parent 7ac62f0 commit fbc8164
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/components/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,16 @@
}

// Current items within the expended mobile menu get
// a blue border to their left, and some padding to make
// a blue line to their left, and some padding to make
// them more visually indented.
//
// The blue line uses an inset box-shadow instead of a
// border, as there’s already a grey border on the top,
// and using 2 different colour borders means an awkward
// diagonal line where they meet.
.nhsuk-header__navigation-item--current {
border-left: nhsuk-spacing(2) solid $color_nhsuk-blue;
padding-left: nhsuk-spacing(1);
box-shadow: inset nhsuk-spacing(2) 0 $color_nhsuk-blue;
padding-left: nhsuk-spacing(2);
}
}

Expand Down

0 comments on commit fbc8164

Please sign in to comment.