mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
style(ui): format surface keyboard component and tests
This commit is contained in:
1 parent
e1ffb9c572
commit
bd6ba07878
3 files changed
+55
-14
No files matched your search
@@ -34,8 +34,13 @@ export function createSurfaceKeyboard({
|
||||
}
|
||||
if (event.key !== 'Tab') return;
|
||||
const order = [
|
||||
...root.querySelectorAll('button, input, [href], [tabindex]:not([tabindex="-1"])'),
|
||||
].filter((node) => !node.hasAttribute('disabled') && node.getClientRects().length > 0);
|
||||
...root.querySelectorAll(
|
||||
'button, input, [href], [tabindex]:not([tabindex="-1"])',
|
||||
),
|
||||
].filter(
|
||||
(node) =>
|
||||
!node.hasAttribute('disabled') && node.getClientRects().length > 0,
|
||||
);
|
||||
if (!order.length) return;
|
||||
const first = order[0];
|
||||
const last = order[order.length - 1];
|
||||
|
||||
Reference in new issue
Block a user