From 5166c3c8bbf8f43e9d79410049f5cec925b6b3e7 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 1 Oct 2021 09:32:51 -0400 Subject: [PATCH] A11y: Fix fastpass issues for /org/teams pages (#39848) (#39864) * A11y: Fix fastpass issues for /org/teams pages See #39429 (cherry picked from commit 451d023c79fe413e8c1fc4c5295ddbd63ffe28a3) Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com> --- .../components/ConfirmButton/DeleteButton.tsx | 5 +++-- .../src/themes/_variables.light.scss.tmpl.ts | 2 +- .../core/components/CloseButton/CloseButton.tsx | 5 +++-- .../components/EmptyListCTA/EmptyListCTA.tsx | 8 +++++--- public/app/core/components/Select/UserPicker.tsx | 4 +++- .../SharedPreferences/SharedPreferences.tsx | 3 ++- public/app/features/teams/CreateTeam.tsx | 2 +- public/app/features/teams/TeamList.tsx | 13 ++++++++++--- public/app/features/teams/TeamMemberRow.tsx | 13 +++++++++++-- public/app/features/teams/TeamMembers.tsx | 8 ++++---- public/app/features/teams/TeamSettings.tsx | 4 ++-- .../teams/__snapshots__/TeamList.test.tsx.snap | 14 ++++++++++++++ .../__snapshots__/TeamMemberRow.test.tsx.snap | 8 ++++++++ .../__snapshots__/TeamMembers.test.tsx.snap | 16 ++++++++++++---- public/sass/_variables.dark.generated.scss | 6 +++--- public/sass/_variables.light.generated.scss | 2 +- public/sass/components/_filter-table.scss | 3 ++- 17 files changed, 85 insertions(+), 31 deletions(-) diff --git a/packages/grafana-ui/src/components/ConfirmButton/DeleteButton.tsx b/packages/grafana-ui/src/components/ConfirmButton/DeleteButton.tsx index 1f73f30623c..f383a31ef5d 100644 --- a/packages/grafana-ui/src/components/ConfirmButton/DeleteButton.tsx +++ b/packages/grafana-ui/src/components/ConfirmButton/DeleteButton.tsx @@ -10,9 +10,10 @@ export interface Props { size?: ComponentSize; /** Disable button click action */ disabled?: boolean; + 'aria-label'?: string; } -export const DeleteButton: FC = ({ size, disabled, onConfirm }) => { +export const DeleteButton: FC = ({ size, disabled, onConfirm, 'aria-label': ariaLabel }) => { return ( = ({ size, disabled, onConfirm }) => { disabled={disabled} onConfirm={onConfirm} > - diff --git a/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap b/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap index 6ed7bdab9d5..63d6e2c90dc 100644 --- a/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap +++ b/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap @@ -92,6 +92,7 @@ exports[`Render should render teams table 1`] = ` href="org/teams/edit/1" > Team avatar @@ -128,6 +129,7 @@ exports[`Render should render teams table 1`] = ` className="text-right" > Team avatar @@ -180,6 +183,7 @@ exports[`Render should render teams table 1`] = ` className="text-right" > Team avatar @@ -232,6 +237,7 @@ exports[`Render should render teams table 1`] = ` className="text-right" > Team avatar @@ -284,6 +291,7 @@ exports[`Render should render teams table 1`] = ` className="text-right" > Team avatar @@ -336,6 +345,7 @@ exports[`Render should render teams table 1`] = ` className="text-right" > Team avatar @@ -458,6 +469,7 @@ exports[`Render when feature toggle editorsCanAdmin is turned on and signedin us className="text-right" > Team avatar @@ -580,6 +593,7 @@ exports[`Render when feature toggle editorsCanAdmin is turned on and signedin us className="text-right" > @@ -49,6 +50,7 @@ exports[`Render should render team members when sync enabled 1`] = ` className="text-right" > @@ -140,6 +143,7 @@ exports[`Render when feature toggle editorsCanAdmin is turned off should not ren className="text-right" > @@ -231,6 +236,7 @@ exports[`Render when feature toggle editorsCanAdmin is turned on should render p className="text-right" > @@ -279,6 +286,7 @@ exports[`Render when feature toggle editorsCanAdmin is turned on should render s className="text-right" > -
+
+
@@ -113,16 +117,20 @@ exports[`Render should render team members 1`] = ` className="cta-form" > -
+
+
diff --git a/public/sass/_variables.dark.generated.scss b/public/sass/_variables.dark.generated.scss index 929feadd84a..e3671331bc9 100644 --- a/public/sass/_variables.dark.generated.scss +++ b/public/sass/_variables.dark.generated.scss @@ -101,7 +101,7 @@ $text-color-strong: #fff; $text-color: rgb(204, 204, 220); $text-color-semi-weak: rgba(204, 204, 220, 0.65); $text-color-weak: rgba(204, 204, 220, 0.65); -$text-color-faint: rgba(204, 204, 220, 0.40); +$text-color-faint: rgba(204, 204, 220, 0.57); $text-color-emphasis: #fff; $text-blue: #6E9FFF; @@ -115,7 +115,7 @@ $brand-gradient-vertical: linear-gradient(#f05a28 30%, #fbca0a 99%); // Links // ------------------------- $link-color: rgb(204, 204, 220); -$link-color-disabled: rgba(204, 204, 220, 0.40); +$link-color-disabled: rgba(204, 204, 220, 0.57); $link-hover-color: #fff; $external-link-color: #6E9FFF; @@ -216,7 +216,7 @@ $input-border-color: rgba(204, 204, 220, 0.15); $input-box-shadow: none; $input-border-focus: #6E9FFF; $input-box-shadow-focus: #6E9FFF !default; -$input-color-placeholder: rgba(204, 204, 220, 0.40); +$input-color-placeholder: rgba(204, 204, 220, 0.57); $input-label-bg: #22252b; $input-color-select-arrow: $white; diff --git a/public/sass/_variables.light.generated.scss b/public/sass/_variables.light.generated.scss index 82968629a7d..e4c91c0e09f 100644 --- a/public/sass/_variables.light.generated.scss +++ b/public/sass/_variables.light.generated.scss @@ -310,7 +310,7 @@ $checkboxImageUrl: '../img/checkbox_white.png'; $info-box-border-color: $blue-base; // footer -$footer-link-color: $gray-3; +$footer-link-color: $gray-1; $footer-link-hover: $dark-2; // json explorer diff --git a/public/sass/components/_filter-table.scss b/public/sass/components/_filter-table.scss index a2161b74b03..8800835b994 100644 --- a/public/sass/components/_filter-table.scss +++ b/public/sass/components/_filter-table.scss @@ -53,7 +53,8 @@ a { display: block; - padding: $space-inset-squish-md; + padding: 0px $space-sm; + height: 30px; } }