Skip to content

Commit 67676e5

Browse files
committed
Add CSS for .sr-only
So we're not relying on Font Awesome 6-
1 parent 8dac1da commit 67676e5

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
### Enhancements
66

7-
- Hide page__footer-follow if there are no links nor atom feed. (#5279)
7+
- Hide `.page__footer-follow` if there are no links nor atom feed. (#5279)
88
- Add HTML escaping for some titles, labels and metada that was missing. (#5276)
99
- Add optional `footer.since` for copyright time range. (#5275)
10+
- Add explicit CSS rules for `.sr-only` following Font Awesome 7's changes. (#5296)
1011

1112
### Bug Fixes
1213

_sass/minimal-mistakes/_utilities.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@
2929
.visually-hidden,
3030
.screen-reader-text,
3131
.screen-reader-text span,
32-
.screen-reader-shortcut {
32+
.screen-reader-shortcut,
33+
.sr-only,
34+
.sr-only-focusable:not(:focus) {
3335
position: absolute !important;
34-
clip: rect(1px, 1px, 1px, 1px);
36+
clip: rect(0, 0, 0, 0);
3537
height: 1px !important;
3638
width: 1px !important;
39+
padding: 0 !important;
3740
border: 0 !important;
41+
margin: -1px;
3842
overflow: hidden;
43+
white-space: nowrap;
3944
}
4045

4146
body:hover .visually-hidden a,

docs/_docs/18-history.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permalink: "/docs/history/"
55
excerpt: Change log of enhancements and bug fixes made to the theme.
66
sidebar:
77
nav: docs
8-
last_modified_at: '2025-07-20T23:02:43+08:00'
8+
last_modified_at: '2025-07-29T12:58:33+08:00'
99
toc: false
1010
---
1111

@@ -19,9 +19,10 @@ toc: false
1919

2020
### Enhancements
2121

22-
- Hide page__footer-follow if there are no links nor atom feed. [#5279](https://github.com/mmistakes/minimal-mistakes/issues/5279)
22+
- Hide `.page__footer-follow` if there are no links nor atom feed. [#5279](https://github.com/mmistakes/minimal-mistakes/issues/5279)
2323
- Add HTML escaping for some titles, labels and metada that was missing. [#5276](https://github.com/mmistakes/minimal-mistakes/issues/5276)
2424
- Add optional `footer.since` for copyright time range. [#5275](https://github.com/mmistakes/minimal-mistakes/issues/5275)
25+
- Add explicit CSS rules for `.sr-only` following Font Awesome 7's changes. [#5296](https://github.com/mmistakes/minimal-mistakes/issues/5296)
2526

2627
### Bug Fixes
2728

0 commit comments

Comments
 (0)