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