Skip to content
Snippets Groups Projects
Commit 2340791f authored by Kevin Abel's avatar Kevin Abel
Browse files

Fix a11y issues with color and Google provided markup.

parent 79f6a1ef
No related branches found
No related tags found
No related merge requests found
......@@ -146,8 +146,18 @@
}
},
queryComplete = function(control) {
$(control.root).closest(resultSel).addClass(actCls).end()
.closest(googleSel).slideDown();
var $root = $(control.root);
// a11y patching
$('img.gs-image', $root).each(function() {
if (!this.alt) {
this.alt = $(this).closest('.gsc-table-result').find('.gs-title').first().text();
}
});
$('img.gcsc-branding-img-noclear', $root).attr('alt', 'Google™');
$root.closest(resultSel).addClass(actCls);
$root.closest(googleSel).slideDown();
},
fullQuery = function(q, track) {
if (track !== false) {
......@@ -225,6 +235,9 @@
localSearch.draw(localResults, drawOp);
}
// a11y patch Google search box
$('form.gsc-search-box').remove();
// setup the tab-like result filters
$('li:first-child', $resTabs).addClass(selCls);
$($resTabs).on('click', 'li', function(e) {
......
......@@ -311,6 +311,10 @@ form .input-group {
display: block;
border: 0;
}
.on-campus-dialing {
color: @light-neutral;
}
}
// Google Styles
......@@ -339,14 +343,14 @@ form .input-group {
}
a.gs-visibleUrl, .gs-visibleUrl {
color: #897b42;
color: @light-neutral;
}
}
.gsc-result-info {
font-style: italic;
margin: 0 0 10px;
color: #897b42;
color: @ui08;
}
.gsc-results {
......@@ -370,7 +374,7 @@ form .input-group {
.gsc-cursor-current-page {
font-weight: normal;
color: @ui07;
color: @ui08;
border: 0;
}
}
......@@ -386,7 +390,7 @@ td.gcsc-branding-text {
div.gcsc-branding-text {
text-align: left;
color: @ui07;
color: @ui08;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment