Skip to content

Commit

Permalink
♿ aria-hidden for svg
Browse files Browse the repository at this point in the history
  • Loading branch information
noeldelgado committed Mar 2, 2020
1 parent 1388cea commit bdd3ca6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<link rel="stylesheet" href="build/css/main.css" media="all">
</head>
<body class="df">
<svg width="0" height="0" style="position:absolute"><symbol viewBox="0 0 24 24" id="svg-file_copy-outlined-24px" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></symbol></svg>
<svg width="0" height="0" aria-hidden="true" style="position:absolute"><symbol viewBox="0 0 24 24" id="svg-file_copy-outlined-24px" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></symbol></svg>
<div class="root">
<header class="df aic">
<svg width="48" height="48" viewBox="0 0 64 64" class="mr1">
<svg width="48" height="48" viewBox="0 0 64 64" class="mr1" aria-hidden="true">
<path d="M0,0 a1,1 0 0,0 64,0" fill="white" transform="scale(1 -1) translate(0 -32)" />
<path d="M0,32 a1,1 0 0,0 64,0" fill="black" />
</svg>
Expand Down Expand Up @@ -136,8 +136,10 @@
</li>
</ul>
<div>
<button class="cc-btn" data-js-copy-to-clipboard-btn data-copy="value:[data-js-fecolormatrix-input]" disabled>
<svg width="16" height="16"><use xlink:href="#svg-file_copy-outlined-24px"></use></svg>
<button class="cc-btn" data-js-copy-to-clipboard-btn data-copy="value:[data-js-fecolormatrix-input]" aria-label="Copy feColorMatrix to clipboard" disabled>
<svg width="16" height="16" aria-hidden="true">
<use xlink:href="#svg-file_copy-outlined-24px"></use>
</svg>
<span>feColorMatrix’s values</span>
<textarea data-js-fecolormatrix-input rows="4" readonly style="display: none;"></textarea>
</button>
Expand All @@ -146,21 +148,23 @@
<footer>
<div>
<button data-js-random-btn class="cc-btn-icon" aria-label="Generate random color" disabled>
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 24 24" aria-hidden="true">
<rect width="24" height="24" fill="rgba(0,0,0,0)"/>
<path d="M10.59 9.17L6.12 4.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l4.46 4.46 1.42-1.4zm4.76-4.32l1.19 1.19L4.7 17.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L17.96 7.46l1.19 1.19c.31.31.85.09.85-.36V4.5c0-.28-.22-.5-.5-.5h-3.79c-.45 0-.67.54-.36.85zm-.52 8.56l-1.41 1.41 3.13 3.13-1.2 1.2c-.31.31-.09.85.36.85h3.79c.28 0 .5-.22.5-.5v-3.79c0-.45-.54-.67-.85-.35l-1.19 1.19-3.13-3.14z" />
</svg>
</button>
<button data-js-colorpicker-btn class="cc-btn-icon" aria-label="Open color picker" disabled>
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 24 24" aria-hidden="true">
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"/>
</svg>
</button>
</div>
<div class="footer__info">
<a class="tdn" href="https://github.com/noeldelgado/yacc" rel="noopener noreferrer" aria-label="View source on GitHub">
<svg class="mr1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
<svg class="mr1" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
</svg>
<span>View Source</span>
</a>
<a class="tdn" href="https://twitter.com/share?text=Convert%20HEX%2FRGB%2FHSL%2FHWB%2FHSV%2FCMYK%2FLAB%2FfeColorMatrix%20with%20yet-another-color-converter%20by%20%40pixelia_me&url=https%3A%2F%2Fnoeldelgado.github.io%2Fyacc%2F" target="_blank" rel="noopener noreferrer" aria-label="Share tool on Twitter. Will open in a new window.">
Expand All @@ -174,7 +178,7 @@
</div>
<div class="cc-by">
<a class="tdn" href="http://pixelia.me" aria-label="Visit author’s website">
<svg height="12" viewBox="0 0 57 30" arial-hidden="true">
<svg height="12" viewBox="0 0 57 30" aria-hidden="true">
<path d="M28.1312,9.5341 C29.7966,9.5341 32.1025,10.627 34.248,12.368 C49.3297,11.5836 53.8793,-0.4796 55.5773,0.6783 C57.8326,3.2476 50.8638,16.3535 39.4,19.088 C39.8655,20.2628 40.1364,21.4786 40.1364,22.6983 C40.1364,25.9478 38.837,26.7409 36.7281,28.8974 L36.704,28.824 C36.4799,29.0276 36.208,29.2318 35.8945,29.4 C35.8945,29.4 36.1346,27.0065 34.9341,26.7672 C34.9341,26.7672 34.3739,27.4054 33.0133,27.2459 C32.8532,25.8896 32.293,25.4109 32.1329,25.3311 C31.4126,25.4109 30.9324,26.5278 30.132,26.5278 C29.8,26.1969 29.5184,25.5615 29.312,24.972 C29.0201,25.4221 28.6036,26.1128 28.2512,26.2885 C27.8796,26.2885 27.1476,25.2858 26.836,24.832 C26.6262,25.4581 26.3285,26.1707 25.9702,26.5278 C25.1699,26.5278 24.6896,25.4109 23.9694,25.3311 C23.8093,25.4109 23.249,25.8896 23.089,27.2459 C21.7284,27.4054 21.1681,26.7672 21.1681,26.7672 C19.9676,27.0065 20.2077,29.4 20.2077,29.4 C19.6122,29.0804 19.1739,28.6307 18.908,28.304 L18.8667,28.3947 C17.1544,26.3262 16.1259,25.5896 16.1259,22.6983 C16.1259,21.4938 16.3637,20.2895 16.784,19.128 C5.2094,16.4922 -1.8448,3.2615 0.4227,0.6783 C2.119,-0.4785 6.6627,11.5578 21.708,12.364 C23.8143,10.6244 26.1724,9.5341 28.1312,9.5341 Z M28.8514,20.3048 C28.8514,20.3048 30.4121,21.7409 32.213,21.7409 C34.0137,21.7409 35.3343,19.3474 35.3343,19.3474 L28.8514,20.3048 Z M20.6879,19.3474 C20.6879,19.3474 22.2486,21.7409 24.0494,21.7409 C25.8502,21.7409 27.1707,20.3048 27.1707,20.3048 L20.6879,19.3474 Z" fill-rule="evenodd"/>
</svg>
</a>
Expand Down

0 comments on commit bdd3ca6

Please sign in to comment.