Skip to content

Commit 13a43bd

Browse files
committed
fix(a11y): footer logo hover/active UX
1 parent d645ae4 commit 13a43bd

File tree

1 file changed

+16
-14
lines changed
  • apps/tup-cms/src/taccsite_custom/tup_cms/static/tup_cms/css/for-tup-cms/components

1 file changed

+16
-14
lines changed

apps/tup-cms/src/taccsite_custom/tup_cms/static/tup_cms/css/for-tup-cms/components/c-footer.css

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,14 @@
4343
}
4444

4545
/* For independent logo sizes */
46-
.c-footer .logos__tacc svg {
46+
.c-footer .logos--branding svg {
4747
height: 55%;
48-
48+
}
49+
.c-footer .logos__tacc svg {
4950
/* To vertically align center as if small text was not present */
5051
transform: translateY(5%);
5152
}
52-
.c-footer .logos__nsf svg {
53-
height: 100%;
54-
}
5553
.c-footer .logos__ut svg {
56-
height: 66.67%;
57-
5854
/* To vertically align center as if small text was not present */
5955
transform: translateY(5%);
6056
}
@@ -78,19 +74,26 @@
7874
}
7975

8076
/* To skin logo links */
81-
.c-footer [class*="logos--"] a:hover {
82-
color: inherit;
83-
opacity: 0.75;
77+
.c-footer [class*="logos--"] a {
78+
&:hover {
79+
color: inherit;
80+
}
81+
&:hover svg {
82+
color: currentColor;
83+
outline: var(--global-border-width--normal) solid currentColor;
84+
outline-offset: 5px;
85+
border-radius: var(--global-border-width--normal);
86+
}
87+
&:active svg {
88+
outline-style: dotted;
89+
}
8490
}
8591
.c-footer .logos--social a {
8692
padding: 0.5em;
8793
}
8894
.c-footer .logos--social svg {
8995
font-size: 2.5rem;
9096
}
91-
.c-footer .logos--social a:hover svg {
92-
color: var(--global-color-accent--light-alt);
93-
}
9497

9598

9699
/* HACK: To undo tricky Instagram hover color */
@@ -239,4 +242,3 @@ html#page-portal .c-footer p {
239242
text-decoration-color: inherit;
240243
}
241244
}
242-

0 commit comments

Comments
 (0)