From eb9366cc679751bdca98f2d702f09114285e3507 Mon Sep 17 00:00:00 2001 From: beeps Date: Fri, 19 Jul 2024 10:22:28 +0100 Subject: [PATCH] Remove up/down keybinding from tabs --- .../govuk-frontend/src/govuk/components/tabs/tabs.mjs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/govuk-frontend/src/govuk/components/tabs/tabs.mjs b/packages/govuk-frontend/src/govuk/components/tabs/tabs.mjs index dce2df6bb8..d5af038949 100644 --- a/packages/govuk-frontend/src/govuk/components/tabs/tabs.mjs +++ b/packages/govuk-frontend/src/govuk/components/tabs/tabs.mjs @@ -365,26 +365,22 @@ export class Tabs extends GOVUKFrontendComponent { /** * Handle tab keydown event * - * - Press right/down arrow for next tab - * - Press left/up arrow for previous tab + * - Press right arrow for next tab + * - Press left arrow for previous tab * * @private * @param {KeyboardEvent} event - Keydown event */ onTabKeydown(event) { switch (event.key) { - // 'Left', 'Right', 'Up' and 'Down' required for Edge 16 support. + // 'Left' and 'Right' required for Edge 16 support. case 'ArrowLeft': - case 'ArrowUp': case 'Left': - case 'Up': this.activatePreviousTab() event.preventDefault() break case 'ArrowRight': - case 'ArrowDown': case 'Right': - case 'Down': this.activateNextTab() event.preventDefault() break