From b642b14b99f8eb2bb4d4843e688819ab36828ff2 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Thu, 14 Apr 2022 14:16:10 -0700 Subject: [PATCH] Fix missing region around keyboard support notes --- script/puppeteer-tests.js | 10 ++-------- styleguide-app/KeyboardSupport.elm | 2 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/script/puppeteer-tests.js b/script/puppeteer-tests.js index 91a63aa9..9db83747 100644 --- a/script/puppeteer-tests.js +++ b/script/puppeteer-tests.js @@ -70,18 +70,12 @@ describe('UI tests', function () { } const skippedRules = { - 'Accordion': ['heading-order', 'region'], - 'Checkbox': ['region'], + 'Accordion': ['heading-order'], 'Loading': ['color-contrast'], - 'Menu': ['region'], - 'Modal': ['region'], - 'Message': ['region'], 'Page': ['color-contrast', 'select-name'], - 'RadioButton': ['duplicate-id', 'region'], - 'SegmentedControl': ['region'], + 'RadioButton': ['duplicate-id'], 'Select': ['label'], 'Switch': ['aria-allowed-attr'], - 'Tabs': ['region'], } const specialProcessing = { diff --git a/styleguide-app/KeyboardSupport.elm b/styleguide-app/KeyboardSupport.elm index a6ac7b93..aa0ac3f5 100644 --- a/styleguide-app/KeyboardSupport.elm +++ b/styleguide-app/KeyboardSupport.elm @@ -39,6 +39,8 @@ view keyboardSupport = ] (List.map viewKeyboardActions keyboardSupport) ] + |> List.singleton + |> aside [] viewKeyboardActions : KeyboardSupport -> Html msg