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
document.body.addEventListener('keyup', function(e) { | |
if (e.keyCode == "9") /* tab keycode */ { | |
document.body.classList.remove('no-focus-outline'); | |
} | |
}); |
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
.no-focus-outline a:focus, | |
.no-focus-outline button:focus { | |
outline: none; | |
} |
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
:focus { outline: thin dotted; } /* Style the outline */ | |
:focus { background: #FFFF00; } /* Give it a background colour */ | |
:focus { color: #FF6600; } /* Change the text colour */ | |
:focus { outline: #FF0000 dotted medium; } /* Provide a custom outline */ | |
:focus { color: #FFFFFF; background: #FF0000; } /* Go high visibility */ |
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
/* remember to define focus styles! */ | |
:focus { outline: 0; } |
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
a { outline: none; } | |
:focus { outline: none; } |
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
.tooltip.is--hidden { | |
opacity: 0; | |
visibility: hidden; /* hide from assistive technologies */ | |
} | |
.tooltip.is--visible { | |
opacity: 1; | |
visibility: visible; /* make visible to assistive technologies */ | |
} |
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
.tooltip.is--hidden { display: none; } | |
.tooltip.is--visible { display: block; } |
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
<img src="sample_image3.png" alt="Clear Coded Programming" title="Clear Coded Programming" width="150" height="150"> |
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
<img src="sample_image3.png" width="150" height="150"> | |
<img src="sample_image3.png" alt=""title="" width="150" height="150"> |
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
// if the user presses the Space key (keyCode: 32) or the Enter key (keyCode: 13) | |
if (e.keyCode == "32" || e.keyCode == "13") { | |
// Checks if the current accordion item is closed - collapsed | |
if(isClosed(currAccordionItem)) { | |
expand(currAccordionItem); | |
setAriaExpanded(currAccordionItem, 'true', 'false'); | |
} else { | |
collapse(currAccordionItem); | |
setAriaExpanded(currAccordionItem, 'false', 'true'); | |
} |
NewerOlder