-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into quick/remove-manage-dn
- Loading branch information
Showing
6 changed files
with
48 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
apps/tup-cms/src/taccsite_cms/templates/snippets/css-global-a11y.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<style id="css-global-a11y"> | ||
/* 1. To make mobile menu button stand out */ | ||
.navbar-dark .navbar-toggler { | ||
border-color: var(--global-color-primary--normal); | ||
} | ||
|
||
/* 2. To make keyboard focus stand out on header */ | ||
/* | ||
.nav-link:focus-visible, | ||
#header-logo:focus-visible, | ||
.navbar-dark .navbar-toggler:focus-visible { | ||
*/ | ||
#s-header :focus, | ||
#header-branding a:focus, | ||
.s-search-bar::part(input):focus, | ||
.s-search-bar::part(button):focus { | ||
outline-color: var(--global-color-primary--xx-light); | ||
} | ||
</style> |
15 changes: 0 additions & 15 deletions
15
apps/tup-cms/src/taccsite_cms/templates/snippets/css-news-hacks.html
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
apps/tup-cms/src/taccsite_cms/templates/snippets/js-prevent-ugly-urls.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script type="module" id="js-prevent-ugly-urls-tup-715"> | ||
const links = document.querySelectorAll('body > :is(header, main, footer) a[target="_blank"]'); | ||
|
||
/* HACK: To revert URL of links that Google changes on hover */ | ||
/* FAQ: Google Analytics settings interpret subdomain links as URLs to adjust so it can track navigation */ | ||
[ ...links ].forEach( function restoreLinkHrefChangedOnHover(link) { | ||
const isTACC = link.host.includes('tacc.utexas.edu'); | ||
|
||
if ( isTACC ) { | ||
let currentHrefVal = link.getAttribute('href'); | ||
|
||
link.setAttribute('data-original-href', currentHrefVal ); | ||
link.addEventListener('click', () => { | ||
const originalHrefVal = link.getAttribute('data-original-href'); | ||
|
||
currentHrefVal = link.getAttribute('href'); | ||
if ( currentHrefVal !== originalHrefVal ) { | ||
link.setAttribute('href', originalHrefVal ); | ||
} | ||
}); | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters