diff --git a/.changeset/beige-lions-swim.md b/.changeset/beige-lions-swim.md new file mode 100644 index 00000000000..bb6aba438c6 --- /dev/null +++ b/.changeset/beige-lions-swim.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-react': patch +--- + +`TransferList.Toolbar` implements the previously missing [toolbar pattern](https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/), including the arrow-key navigation functionality. diff --git a/.changeset/orange-cats-mix.md b/.changeset/orange-cats-mix.md new file mode 100644 index 00000000000..607aa047fdf --- /dev/null +++ b/.changeset/orange-cats-mix.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-react': patch +--- + +`IconButton`s inside `TransferList.Toolbar` will now show tooltips on the right side by default to avoid obscuring adjacent buttons in the group. This placement can be changed using the `labelProps.placement` prop on the `IconButton`. diff --git a/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-Basic.png b/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-Basic.png old mode 100644 new mode 100755 index 85c00a332a1..5c16c4b70f0 Binary files a/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-Basic.png and b/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-Basic.png differ diff --git a/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png b/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png index 71bf6c53c82..5954f862e2b 100755 Binary files a/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png and b/apps/react-workshop/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png differ diff --git a/packages/itwinui-react/src/core/TransferList/TransferList.test.tsx b/packages/itwinui-react/src/core/TransferList/TransferList.test.tsx index 3eebb502c10..8946a867469 100644 --- a/packages/itwinui-react/src/core/TransferList/TransferList.test.tsx +++ b/packages/itwinui-react/src/core/TransferList/TransferList.test.tsx @@ -40,7 +40,21 @@ it('should render in its most basic state', () => { }); }); -it('should handle keyboard navigation', () => { +it('should render Toolbar in its most basic state', () => { + const { container } = render( + + +