mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-27 15:51:23 +00:00
Make checkboxes on graph WCAG2AA compliant
This commit is contained in:
2
public/css/site.min.css
vendored
2
public/css/site.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -168,11 +168,11 @@ $(document).ready(function(){
|
|||||||
$.each(datasets, function(key, val) {
|
$.each(datasets, function(key, val) {
|
||||||
var lowerCaseValue = (val.label.substring(0, val.label.length - 1)).toLowerCase();
|
var lowerCaseValue = (val.label.substring(0, val.label.length - 1)).toLowerCase();
|
||||||
choiceContainer.append('<li class="text-center '+
|
choiceContainer.append('<li class="text-center '+
|
||||||
lowerCaseValue +'"><label for="id' + key +
|
lowerCaseValue +'"><div class="series-checkbox-container"><input type="checkbox" name="' + key +
|
||||||
'"><input type="checkbox" name="' + key +
|
|
||||||
'" checked="checked" id="id' + key +
|
'" checked="checked" id="id' + key +
|
||||||
'"/><span class="stat-type">' + val.label +
|
'"/><label for="id' + key +
|
||||||
'</span></label></li>');
|
'"><span class="stat-type">' + val.label +
|
||||||
|
'</span></label></div></li>');
|
||||||
});
|
});
|
||||||
|
|
||||||
choiceContainer.find('input').click(plotAccordingToChoices);
|
choiceContainer.find('input').click(plotAccordingToChoices);
|
||||||
|
2
public/js/site.min.js
vendored
2
public/js/site.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -342,12 +342,20 @@ ul.date-links {
|
|||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
padding:2px 4px;
|
|
||||||
margin-bottom:0;
|
margin-bottom:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.series-checkbox-container {
|
||||||
|
padding:2px 4px 3px 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
margin:5px auto 3px auto;
|
||||||
|
}
|
||||||
|
|
||||||
input, label {
|
input, label {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
display:block;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
|
Reference in New Issue
Block a user