From 311f11f241403f2d068b7f5232480f729b7e7d24 Mon Sep 17 00:00:00 2001 From: edisdev Date: Thu, 5 Sep 2019 23:04:53 +0300 Subject: [PATCH 01/17] #1818 | Make Accessibility Elements in navbar --- .../theme-default/components/DropdownLink.vue | 6 ++++++ .../@vuepress/theme-default/components/NavLinks.vue | 12 +++++++++++- .../@vuepress/theme-default/components/Navbar.vue | 4 +++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/packages/@vuepress/theme-default/components/DropdownLink.vue b/packages/@vuepress/theme-default/components/DropdownLink.vue index 0d360830ee..f84b6d38d9 100644 --- a/packages/@vuepress/theme-default/components/DropdownLink.vue +++ b/packages/@vuepress/theme-default/components/DropdownLink.vue @@ -4,7 +4,9 @@ :class="{ open }" > {{ item.text }} @@ -65,6 +67,10 @@ export default { props: { item: { required: true + }, + dropdownName: { + default: '', + type: String } }, diff --git a/packages/@vuepress/theme-default/components/NavLinks.vue b/packages/@vuepress/theme-default/components/NavLinks.vue index 3174b82c1c..cf9641a686 100644 --- a/packages/@vuepress/theme-default/components/NavLinks.vue +++ b/packages/@vuepress/theme-default/components/NavLinks.vue @@ -6,12 +6,14 @@ From 44462b621cd8d569679a4c5954476d2ab3c81012 Mon Sep 17 00:00:00 2001 From: edisdev Date: Fri, 6 Sep 2019 00:03:23 +0300 Subject: [PATCH 02/17] fix: Change to dropdownlink test --- .../theme-default/__tests__/components/DropdownLink.spec.js | 2 +- .../components/__snapshots__/DropdownLink.spec.js.snap | 2 +- packages/@vuepress/theme-default/components/DropdownLink.vue | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/@vuepress/theme-default/__tests__/components/DropdownLink.spec.js b/packages/@vuepress/theme-default/__tests__/components/DropdownLink.spec.js index e955194fc5..da78e50603 100644 --- a/packages/@vuepress/theme-default/__tests__/components/DropdownLink.spec.js +++ b/packages/@vuepress/theme-default/__tests__/components/DropdownLink.spec.js @@ -22,7 +22,7 @@ describe('DropdownLink', () => { stubs: { 'router-link': RouterLinkStub }, - propsData: { item } + propsData: { item, dropdownName: 'Languages' } }) expect(wrapper.html()).toMatchSnapshot() }) diff --git a/packages/@vuepress/theme-default/__tests__/components/__snapshots__/DropdownLink.spec.js.snap b/packages/@vuepress/theme-default/__tests__/components/__snapshots__/DropdownLink.spec.js.snap index 0b060a942e..152a9eb855 100644 --- a/packages/@vuepress/theme-default/__tests__/components/__snapshots__/DropdownLink.spec.js.snap +++ b/packages/@vuepress/theme-default/__tests__/components/__snapshots__/DropdownLink.spec.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`DropdownLink renders dropdown link. 1`] = ` -