File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function VariantSelect(props) {
42
42
const variantPages = NavHierarchy . getVariantsForPage ( props . root , vp . page ) ;
43
43
const items = [ ] ;
44
44
let selectedItem = variantPages [ 0 ] ;
45
-
45
+
46
46
if ( variantPages . length === 0 ) {
47
47
return null ;
48
48
}
@@ -73,6 +73,7 @@ function VariantSelect(props) {
73
73
}
74
74
items . push (
75
75
< a
76
+ id = { match . variant . shortName }
76
77
style = { { textDecoration : 'none' } }
77
78
tabIndex = { 0 }
78
79
key = { match . variant . title }
@@ -99,8 +100,9 @@ function VariantSelect(props) {
99
100
}
100
101
101
102
return (
102
- < div ref = { wrapper } >
103
- < Dropdown onKeyDown = { onDropDownKeyDown } overlay = { props . overlay } >
103
+ < div style = { { display : 'flex' , flexDirection : 'column' } } ref = { wrapper } >
104
+ < label id = "label-versions-list-item" htmlFor = 'variant-select' > Select CLI Version:</ label >
105
+ < Dropdown id = "versions-list-item" aria-labelledby = { selectedItem ?. variant ?. shortName } onKeyDown = { onDropDownKeyDown } overlay = { props . overlay } >
104
106
< VariantSelect . Button aria-label = 'Version release' > { selectedItem . variant . title } </ VariantSelect . Button >
105
107
< VariantSelect . Menu direction = { props . direction } width = { props . menuWidth } >
106
108
{ items }
You can’t perform that action at this time.
0 commit comments