mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 17:23:29 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -58,7 +58,7 @@ const tabbableElementsQuerySelector = 'a[href], area[href], input:not([disabled]
|
||||
*/
|
||||
export function getFocusableElements(container: HTMLElement): HTMLElement[] {
|
||||
const elements = [];
|
||||
container.querySelectorAll(tabbableElementsQuerySelector).forEach((element: HTMLElement) => {
|
||||
container.querySelectorAll<HTMLElement>(tabbableElementsQuerySelector).forEach((element: HTMLElement) => {
|
||||
const style = window.getComputedStyle(element);
|
||||
// We should only return the elements that are visible. There are many ways to hide an element, for example setting the
|
||||
// visibility attribute to hidden/collapse, setting the display property to none, or if one of its ancestors is invisible.
|
||||
|
||||
Reference in New Issue
Block a user