You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tab index implemented for each variant item (npm#244)
* tab index implemented for each variant item
* we collapse on last element blur
Co-authored-by: Makhmudjon Inadullaev <makhmudjon@Makhmudjons-MacBook-Pro-2.local>
Co-authored-by: Makhmudjon Inadullaev <makhmudjon@MakhmudjonsMBP2.home>
Copy file name to clipboardExpand all lines: theme/src/components/variant-select.js
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,12 +29,21 @@ function VariantSelect(props) {
29
29
returnnull;
30
30
}
31
31
32
-
variantPages.forEach((match)=>{
32
+
/**
33
+
* We should use '@primer/react' package, as '@primer/components' package depricated and moved to '@primer/react'.
34
+
* We have no closing/opening control with current '@primer/components' package, so document.body click event used for closing purpose.
35
+
*/
36
+
// TODO: We should use 'setOpen' function returned by the useDetails hook when we move to '@primer/react' package. https://primer.style/react/deprecated/Dropdown
0 commit comments