Skip to content

Commit e79ffab

Browse files
committed
Fixed page scrolling up when switching color palettes in Firefox 117
1 parent a6033d1 commit e79ffab

File tree

6 files changed

+11
-3
lines changed

6 files changed

+11
-3
lines changed

material/assets/stylesheets/main.0e669242.min.css

-1
This file was deleted.

material/assets/stylesheets/main.0e669242.min.css.map

-1
This file was deleted.

material/assets/stylesheets/main.43b9b3ee.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.43b9b3ee.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0e669242.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.43b9b3ee.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.85d0ee34.min.css' | url }}">

src/assets/stylesheets/main/components/_header.scss

+8
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,14 @@
240240
max-width 0ms,
241241
opacity 0ms;
242242
}
243+
244+
// Hack: Firefox 117 introduces a bug where the browser scrolls the page by
245+
// a small amount to the top every time the header button is focused. After
246+
// investigating, we're confident that it seems to be caused by the input
247+
// field being too close to the border - see https://t.ly/APO8l
248+
> input {
249+
bottom: 0;
250+
}
243251
}
244252

245253
// Repository information container

0 commit comments

Comments
 (0)