1
+ @use " sass:color" ;
1
2
@use " sass:math" ;
2
3
@use " ../../core/objects" as * ;
3
4
@use " ../../core/settings" as * ;
@@ -87,24 +88,44 @@ $_header-item-padding: 12px;
87
88
/// Account
88
89
89
90
.nhsuk-header__account {
90
- background : nhsuk-shade ( $color_nhsuk-blue , 20 % ) ;
91
+ position : relative ;
91
92
border-radius : $nhsuk-border-radius ;
92
93
flex-grow : 1 ;
93
- outline : 1px solid nhsuk-shade ($color_nhsuk-blue , 20% );
94
94
margin-bottom : 1px ;
95
95
96
- @include nhsuk-media-query ($from : tablet) {
97
- align-self : start ;
98
- }
99
-
100
96
.nhsuk-icon__user {
101
97
height : 24px ;
102
98
width : 24px ;
103
99
flex-shrink : 0 ;
104
100
}
101
+
102
+ & ,
103
+ & ::before {
104
+ background-color : nhsuk-shade ($color_nhsuk-blue , 20% );
105
+ }
106
+
107
+ // Expand header account by 1px to ensure the search
108
+ // input does not appear to be taller when inline
109
+ & ::before {
110
+ content : " " ;
111
+ display : block ;
112
+ position : absolute ;
113
+ top : -1px ;
114
+ right : 0 ;
115
+ bottom : -1px ;
116
+ left : 0 ;
117
+ border : 1px solid nhsuk-shade ($color_nhsuk-blue , 20% );
118
+ border-radius : $nhsuk-border-radius + 1px ;
119
+ }
120
+
121
+ @include nhsuk-media-query ($from : tablet) {
122
+ align-self : start ;
123
+ }
105
124
}
106
125
107
126
.nhsuk-header__account-list {
127
+ position : relative ;
128
+ z-index : 1 ;
108
129
display : flex ;
109
130
flex-wrap : wrap ;
110
131
gap : 1px ;
@@ -115,7 +136,6 @@ $_header-item-padding: 12px;
115
136
}
116
137
117
138
.nhsuk-header__account-item {
118
- background-color : nhsuk-shade ($color_nhsuk-blue , 20% );
119
139
display : flex ;
120
140
flex-grow : 1 ;
121
141
gap : nhsuk-spacing (2 );
@@ -455,8 +475,15 @@ $_header-item-padding: 12px;
455
475
}
456
476
457
477
.nhsuk-header__account ,
458
- .nhsuk-header__account-item {
478
+ .nhsuk-header__account ::before {
459
479
background-color : $color_nhsuk-grey-5 ;
480
+ }
481
+
482
+ .nhsuk-header__account ::before {
483
+ border-color : $color_nhsuk-grey-4 ;
484
+ }
485
+
486
+ .nhsuk-header__account-item {
460
487
outline-color : $color_nhsuk-grey-4 ;
461
488
}
462
489
0 commit comments