Skip to content

Commit

Permalink
fix($core): vuejs#2627 Dup ID violates HTML5-2
Browse files Browse the repository at this point in the history
  • Loading branch information
adico1 committed Oct 8, 2020
1 parent 34935ca commit fa3d481
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -2,6 +2,7 @@
<svg
class="icon outbound"
xmlns="http://www.w3.org/2000/svg"
:aria-labelledby="rIdx"
role="img"
focusable="false"
x="0px"
Expand All @@ -10,7 +11,7 @@
width="15"
height="15"
>
<title>{{ openInNewWindowTitle }}</title>
<title :id="rIdx">{{ openInNewWindowTitle }}</title>
<path
fill="currentColor"
d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"
Expand All @@ -24,6 +25,11 @@

<script>
export default {
data: function () {
return {
rIdx: 'outbound-link-title-' + Math.floor(Math.random() * 1000000)
}
},
computed: {
openInNewWindowTitle () {
return this.$themeLocaleConfig.openNewWindowText || '(opens new window)'
Expand Down

0 comments on commit fa3d481

Please sign in to comment.