Skip to content

Commit

Permalink
TreeView: Fix initial focus (#2845)
Browse files Browse the repository at this point in the history
* Change TreeView focusInStrategy

* Make focusInStrategy more robust

* Fix test

* Create .changeset/few-deers-work.md

* Bump primer/behaviors version

* Add test for initial focus

* Fix TabNav focusZone

* Bump primer/behaviors

* Create .changeset/tidy-rice-hammer.md
  • Loading branch information
colebemis committed Feb 13, 2023
1 parent 1f31c3e commit c31314c
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 468 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-deers-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

TreeView: When moving focus to TreeView, the current item will be focused by default.
5 changes: 5 additions & 0 deletions .changeset/tidy-rice-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

TabNav: Re-focusing a TabNav will focus the selected tab
Loading

0 comments on commit c31314c

Please sign in to comment.