update for suggestion (#288)
Co-authored-by: Makhmudjon Inadullaev <makhmudjon@MakhmudjonsMBP2.home>
Makhmudjon Inadullaev committed
Oct 27, 2022 at 19:23 UTC
a1265c8877caabf9a61db96024fce5dcfbf3f8ef
2 files changed
+5
-6
src/theme/nav.yml
-4
@@ -287,7 +287,6 @@
287
variants:
288
- title: Version 6.14.17 (Legacy Release)
289
shortName: v6
290
- tabIndex: 1
290
url: /cli/v6
291
default: false
292
children:
@@ -527,7 +526,6 @@
526
description: Cleaning the slate
527
- title: Version 7.24.2 (Legacy Release)
528
shortName: v7
530
- tabIndex: 2
529
url: /cli/v7
530
default: false
531
children:
@@ -783,7 +781,6 @@
781
- title: Version 8.19.2 (Latest Release)
782
shortName: v8
783
url: /cli/v8
786
- tabIndex: 3
784
default: true
785
children:
786
- title: CLI Commands
@@ -1050,7 +1047,6 @@
1047
- title: Version 9.0.1 (Current Release)
1048
shortName: v9
1049
url: /cli/v9
1053
- tabIndex: 4
1050
default: false
1051
children:
1052
- title: CLI Commands
theme/src/components/variant-select.js
+5
-2
@@ -47,8 +47,11 @@ function VariantSelect(props) {
47
window.location.href = match.page.url;
48
}
49
}
50
-
51
- items.push(<Dropdown.Item aria-label={`${match.variant.title}. List items ${index + 1} of ${variantPages.length}`} onKeyDown={onItemEnterKey} onBlur={index === (variantPages.length - 1) ? collapseDropdown : undefined} tabIndex={0} onClick={() => { window.location.href = match.page.url; }} key={match.variant.title}>{match.variant.title}</Dropdown.Item>);
50
+ items.push(
51
+ <a style={{ textDecoration: 'none' }} aria-label={`${match.variant.title}. List items ${index + 1} of ${variantPages.length}`} href={match.page.url} onKeyDown={onItemEnterKey} onBlur={index === (variantPages.length - 1) ? collapseDropdown : undefined} tabIndex={0} key={match.variant.title}>
52
+ <Dropdown.Item>{match.variant.title}</Dropdown.Item>
53
+ </a>
54
+ );
55
});
56
57
return (