Skip to content

Commit d37d230

Browse files
committed
UTC-575: Fix the rotation and clunkiness of mobile menu on twm.
1 parent e25c885 commit d37d230

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

source/default/_patterns/00-protons/legacy/css/components/navigation/_top-workbench-menu.css

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ ul.sf-menu.top-workbench-menu li.sfHover>ul, ul.sf-menu.top-workbench-menu li:ho
170170
width: unset;
171171
height: 50px;
172172
display: flex;
173-
z-index: 501;
173+
z-index: 502;
174174
}
175175
.region-top-workbench-menu h2.block__title:after {
176176
display: none;
@@ -200,8 +200,16 @@ ul.sf-menu.top-workbench-menu li.sfHover>ul, ul.sf-menu.top-workbench-menu li:ho
200200
margin-bottom: 12px;
201201
}
202202
.region-top-workbench-menu .sf-accordion-toggle a {
203-
display: block !important;
203+
display: flex!important;
204+
align-items: start;
205+
justify-content: start;
206+
height: 100%;
204207
}
208+
/**change the outline to red for accessibility (the default gold on gold doesn't work)**/
209+
.region-top-workbench-menu .sf-accordion-toggle a.focus-visible, .region-top-workbench-menu .sf-accordion-toggle a:focus-visible {
210+
outline: 2px dashed red;
211+
max-height: 40px;
212+
}
205213
.region-top-workbench-menu .sf-accordion-toggle > a span {
206214
color: transparent;
207215
}
@@ -226,16 +234,16 @@ ul.sf-menu.top-workbench-menu li.sfHover>ul, ul.sf-menu.top-workbench-menu li:ho
226234
font-weight: bold;
227235
letter-spacing: .05rem;
228236
color: #112e51;
229-
display: block !important;
230-
height: 45px;
231-
width: 24px;
232-
font-size: 55px;
237+
font-size: 36px;
233238
transition: all .4s ease-in-out;
239+
transform-origin: 50% 50%;
240+
padding-bottom: 12px;
241+
line-height:1.05;
234242
}
235243
.region-top-workbench-menu .sf-accordion-toggle.sf-style-none .sf-expanded span {
236244
rotate: 90deg;
237-
margin-top: -5px;
238245
transition: all .4s ease-in-out;
246+
transform-origin: 50% 50%;
239247
}
240248
ul.sf-menu.menu.top-workbench-menu.sf-horizontal {display:none;}
241249

@@ -245,7 +253,7 @@ ul.sf-menu.top-workbench-menu li.sfHover>ul, ul.sf-menu.top-workbench-menu li:ho
245253
ul.sf-menu.top-workbench-menu ul li a:hover {
246254
background-color: #e7eaee;
247255
}
248-
.region-top-workbench-menu .sf-accordion-toggle a:after {
256+
.region-top-workbench-menu .sf-accordion-toggle:after {
249257
content: '';
250258
position: absolute;
251259
top: 0;
@@ -254,7 +262,7 @@ ul.sf-menu.top-workbench-menu li.sfHover>ul, ul.sf-menu.top-workbench-menu li:ho
254262
border-right: 25px solid transparent;
255263
transform: rotate(-90deg);
256264
height: 50px;
257-
margin-left: 23px;
265+
margin-left: 82px;
258266
}
259267
ul.sf-menu.menu.top-workbench-menu {
260268
justify-content: start;
@@ -352,6 +360,7 @@ ul.sf-menu.top-workbench-menu li.sfHover>ul, ul.sf-menu.top-workbench-menu li:ho
352360
border-bottom: 1px solid #e7eaee;
353361
}
354362
}
363+
355364
@media (max-width: 640px) {
356365
ul.sf-menu.menu.top-workbench-menu,
357366
.region-top-workbench-menu .block {

0 commit comments

Comments
 (0)