Snippets Collections
img:not([alt]) {
  outline: 2px solid red;
}
//add aria label to link that opens in new tab
function aria_formatter($content) {
$replace = array('target="_blank"' => 'target="_blank" aria-label="Opens in a new tab."');
$new_content = strtr($content, $replace);
return $new_content;
}
add_filter('the_content', 'aria_formatter', 999);
star

Mon Mar 15 2021 13:53:55 GMT+0000 (UTC)

#css #accessibility

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension