From 34935ca531c60392d63ac9aa0741e059620a8cfb Mon Sep 17 00:00:00 2001 From: Adi Cohen Date: Thu, 8 Oct 2020 23:59:58 +0300 Subject: [PATCH 1/4] fix($core): #2627 Dup ID violates HTML5 --- .../lib/client/components/OutboundLink.vue | 3 +-- yarn.lock | 21 ++++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/@vuepress/core/lib/client/components/OutboundLink.vue b/packages/@vuepress/core/lib/client/components/OutboundLink.vue index b2be4027cb..5f2636c3c4 100644 --- a/packages/@vuepress/core/lib/client/components/OutboundLink.vue +++ b/packages/@vuepress/core/lib/client/components/OutboundLink.vue @@ -2,7 +2,6 @@ - {{ openInNewWindowTitle }} + {{ openInNewWindowTitle }} Date: Fri, 9 Oct 2020 00:46:56 +0300 Subject: [PATCH 2/4] fix($core): #2627 Dup ID violates HTML5-2 --- .../@vuepress/core/lib/client/components/OutboundLink.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/client/components/OutboundLink.vue b/packages/@vuepress/core/lib/client/components/OutboundLink.vue index 5f2636c3c4..2fa1d24694 100644 --- a/packages/@vuepress/core/lib/client/components/OutboundLink.vue +++ b/packages/@vuepress/core/lib/client/components/OutboundLink.vue @@ -2,6 +2,7 @@ - {{ openInNewWindowTitle }} + {{ openInNewWindowTitle }} export default { + data: function () { + return { + rIdx: 'outbound-link-title-' + Math.floor(Math.random() * 1000000) + } + }, computed: { openInNewWindowTitle () { return this.$themeLocaleConfig.openNewWindowText || '(opens new window)' From 235a4aaac26e2996f3538b802eb132b7c6c22c13 Mon Sep 17 00:00:00 2001 From: Adi Cohen Date: Fri, 9 Oct 2020 02:53:36 +0300 Subject: [PATCH 3/4] fix($core): #2627 Dup ID violates HTML5-3 --- .../lib/client/components/OutboundLink.vue | 51 +++++++++---------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/packages/@vuepress/core/lib/client/components/OutboundLink.vue b/packages/@vuepress/core/lib/client/components/OutboundLink.vue index 2fa1d24694..6323cd9acc 100644 --- a/packages/@vuepress/core/lib/client/components/OutboundLink.vue +++ b/packages/@vuepress/core/lib/client/components/OutboundLink.vue @@ -1,35 +1,34 @@ + + {{ openInNewWindowTitle }} diff --git a/packages/@vuepress/theme-default/styles/index.styl b/packages/@vuepress/theme-default/styles/index.styl index 976bfb0447..0a3e8430c0 100644 --- a/packages/@vuepress/theme-default/styles/index.styl +++ b/packages/@vuepress/theme-default/styles/index.styl @@ -189,6 +189,16 @@ th, td .sidebar top 0 +.sr-only + position absolute + width 1px + height 1px + padding 0 + margin -1px + overflow hidden + clip rect(0, 0, 0, 0) + white-space nowrap + border-width 0 @media (min-width: ($MQMobile + 1px)) .theme-container.no-sidebar