Skip to content

Commit abd101c

Browse files
fix(navbar): hide 'Toggle Menu' text in mobile view, only visible to sr-only (#631) (#632)
Co-authored-by: Spyros <northdpole@users.noreply.github.com>
1 parent 087e6cd commit abd101c

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

‎application/frontend/src/scaffolding/Header/header.scss‎

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ main {
2323
&__container {
2424
max-width: 112rem; // max-w-7xl
2525
margin: 0 auto;
26-
padding: 0 1rem;
26+
padding: 0 2rem;
2727
@media (min-width: 640px) {
2828
padding: 0 1.5rem;
2929
}
@@ -46,7 +46,7 @@ main {
4646
display: flex;
4747
align-items: center;
4848
gap: 0.5rem;
49-
margin-left: 4rem;
49+
margin-left: 2rem;
5050
img {
5151
height: 10rem;
5252
width: 10rem;
@@ -144,8 +144,8 @@ main {
144144
border-radius: var(--radius);
145145

146146
.icon {
147-
height: 1.25rem;
148-
width: 1.25rem;
147+
height: 2rem;
148+
width: 2rem;
149149
color: var(--foreground);
150150
}
151151

@@ -155,6 +155,18 @@ main {
155155
}
156156
}
157157

158+
.sr-only {
159+
position: absolute;
160+
width: 1px;
161+
height: 1px;
162+
padding: 0;
163+
margin: -1px;
164+
overflow: hidden;
165+
clip: rect(0, 0, 0, 0);
166+
white-space: nowrap;
167+
border: 0;
168+
}
169+
158170
.navbar__mobile-menu {
159171
position: fixed;
160172
top: 0;

0 commit comments

Comments
 (0)