-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dialog, dialog-full-screen, sidebar): make overflowing content ta…
…bbable When any of the components' content containers overflow and contain no interactive elements, the container will be added to the tabbing order and can be focused via keyboard navigation to ensure their contents are accessible fix #6999
- Loading branch information
1 parent
cc39891
commit 0164a65
Showing
19 changed files
with
293 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { Page } from "@playwright/test"; | ||
import DIALOG_FULL_SCREEN_CONTENT from "./locators"; | ||
|
||
const dialogFullScreenContent = (page: Page) => { | ||
return page.locator(DIALOG_FULL_SCREEN_CONTENT); | ||
}; | ||
|
||
export default dialogFullScreenContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const DIALOG_FULL_SCREEN_CONTENT = '[data-role="dialog-full-screen-content"]'; | ||
|
||
export default DIALOG_FULL_SCREEN_CONTENT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import { Page } from "@playwright/test"; | ||
import { SIDEBAR_PREVIEW, SIDEBAR_COMPONENT } from "./locators"; | ||
import { | ||
SIDEBAR_PREVIEW, | ||
SIDEBAR_COMPONENT, | ||
SIDEBAR_CONTENT, | ||
} from "./locators"; | ||
|
||
// component preview locators | ||
export const sidebarPreview = (page: Page) => page.locator(SIDEBAR_PREVIEW); | ||
|
||
export const sidebarComponent = (page: Page) => page.locator(SIDEBAR_COMPONENT); | ||
|
||
export const sidebarContent = (page: Page) => page.locator(SIDEBAR_CONTENT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// component preview locators | ||
export const SIDEBAR_PREVIEW = '[data-element="sidebar"]'; | ||
export const SIDEBAR_COMPONENT = '[data-component="sidebar"]'; | ||
export const SIDEBAR_CONTENT = '[data-role="sidebar-content"]'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.