Skip to content

Commit a1265c8

Browse files
makhmudjon-inadullaevMakhmudjon Inadullaev
andauthored
update for suggestion (npm#288)
Co-authored-by: Makhmudjon Inadullaev <makhmudjon@MakhmudjonsMBP2.home>
1 parent 16eb119 commit a1265c8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/theme/nav.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@
287287
variants:
288288
- title: Version 6.14.17 (Legacy Release)
289289
shortName: v6
290-
tabIndex: 1
291290
url: /cli/v6
292291
default: false
293292
children:
@@ -527,7 +526,6 @@
527526
description: Cleaning the slate
528527
- title: Version 7.24.2 (Legacy Release)
529528
shortName: v7
530-
tabIndex: 2
531529
url: /cli/v7
532530
default: false
533531
children:
@@ -783,7 +781,6 @@
783781
- title: Version 8.19.2 (Latest Release)
784782
shortName: v8
785783
url: /cli/v8
786-
tabIndex: 3
787784
default: true
788785
children:
789786
- title: CLI Commands
@@ -1050,7 +1047,6 @@
10501047
- title: Version 9.0.1 (Current Release)
10511048
shortName: v9
10521049
url: /cli/v9
1053-
tabIndex: 4
10541050
default: false
10551051
children:
10561052
- title: CLI Commands

theme/src/components/variant-select.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ function VariantSelect(props) {
4747
window.location.href = match.page.url;
4848
}
4949
}
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+
);
5255
});
5356

5457
return (

0 commit comments

Comments
 (0)