Skip to content

Commit 44e4a0a

Browse files
committed
Centralized focus styling into mixin and applied to footer interactive elements
1 parent 7e78e9b commit 44e4a0a

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

app/assets/stylesheets/partials/_effects.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@
99
text-decoration: none; // Included as fallback if text-decoration-color isn't supported
1010
text-decoration: underline transparent;
1111
}
12+
13+
//
14+
@mixin set-focus-outline() {
15+
*:focus-visible {
16+
outline: 2px solid $color-focus-dark;
17+
}
18+
}

app/assets/stylesheets/partials/_header.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.institute-bar, .libraries-header {
2-
*:focus-visible {
3-
outline: 2px solid $color-focus-dark;
4-
}
2+
@include set-focus-outline();
53
}
64

75
.institute-bar {

app/assets/stylesheets/partials/_layouts.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
}
3838

3939
// FOOTER STYLES
40+
41+
.wrap-outer-footer, .wrap-outer-footer-institute {
42+
@include set-focus-outline();
43+
}
44+
45+
4046
.wrap-footer.footer-slim {
4147
padding-top: 32px;
4248
padding-bottom: 32px;
@@ -49,6 +55,10 @@
4955

5056
.wrap-footer .wrap-logo-lib {
5157
margin-right: 48px;
58+
59+
.logo-mit-lib {
60+
display: block;
61+
}
5262
}
5363

5464
.wrap-footer.footer-slim .wrap-middle .wrap-policies {

0 commit comments

Comments
 (0)