Created
July 18, 2017 19:47
-
-
Save daliborgogic/6d9610fb6aae74d41beeb0e648e5ec1c to your computer and use it in GitHub Desktop.
Using ARIA to enhance SVG accessibility
This file contains hidden or 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
<template lang="pug"> | |
svg.icon.icon-settings( | |
fill="#000000" | |
height="24" | |
viewBox="0 0 24 24" | |
width="24" | |
xmlns="http://www.w3.org/2000/svg" | |
role="img" | |
aria-labelledby="iconSettingsTitle iconSettingsDescription" | |
) | |
title#iconSettingsTitle Title here | |
description#iconSettingsDescription Decription here | |
path(d="M0 0h24v24H0z" fill="none") | |
path(d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z") | |
</template> | |
<script> | |
export default { | |
name: 'icon-settings' | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment