Skip to content

Commit df01d16

Browse files
authored
fix: skip to main content shouldn't scroll (#385)
1 parent cbfc01e commit df01d16

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

app/assets/main.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ button {
154154

155155
/* Skip link */
156156
.skip-link {
157-
position: absolute;
157+
position: fixed;
158158
top: -100%;
159159
left: 0;
160160
padding: 0.5rem 1rem;
@@ -165,6 +165,15 @@ button {
165165
transition: top 0.2s ease;
166166
}
167167

168+
html[dir='rtl'] .skip-link {
169+
left: unset;
170+
right: 0;
171+
}
172+
173+
.skip-link:hover {
174+
color: var(--bg);
175+
text-decoration: underline;
176+
}
168177
.skip-link:focus {
169178
top: 0;
170179
}

0 commit comments

Comments
 (0)