From 124c3f537f173b996c9a7d272a8617547279fe38 Mon Sep 17 00:00:00 2001 From: kay delaney <45561153+kaydelaney@users.noreply.github.com> Date: Mon, 1 Nov 2021 14:45:23 +0000 Subject: [PATCH] A11y: Fix misc. fastpass issues (#41088) --- packages/grafana-data/src/themes/createColors.ts | 2 +- packages/grafana-ui/src/components/Alert/Alert.tsx | 2 +- .../DateTimePicker/DateTimePicker.tsx | 4 +++- .../components/MatchersUI/FieldNameMatcherEditor.tsx | 4 ++-- .../components/MatchersUI/FieldTypeMatcherEditor.tsx | 4 ++-- .../grafana-ui/src/components/MatchersUI/types.ts | 1 + public/app/core/components/Card/Card.tsx | 4 +++- public/app/core/components/Select/OrgPicker.tsx | 4 +++- .../PanelEditor/getFieldOverrideElements.tsx | 1 + public/app/features/inspector/InspectDataOptions.tsx | 3 ++- public/app/features/inspector/InspectJSONTab.tsx | 8 +++++++- .../variables/editor/VariableSelectField.tsx | 4 +++- .../variables/editor/VariableSwitchField.tsx | 10 +++++++++- public/app/plugins/panel/graph/axes_editor.html | 12 +++++++----- public/sass/_variables.dark.generated.scss | 6 +++--- 15 files changed, 48 insertions(+), 21 deletions(-) diff --git a/packages/grafana-data/src/themes/createColors.ts b/packages/grafana-data/src/themes/createColors.ts index aaee1dc9a71..13fe35d85e3 100644 --- a/packages/grafana-data/src/themes/createColors.ts +++ b/packages/grafana-data/src/themes/createColors.ts @@ -96,7 +96,7 @@ class DarkColors implements ThemeColorsBase> { text = { primary: `rgb(${this.whiteBase})`, secondary: `rgba(${this.whiteBase}, 0.65)`, - disabled: `rgba(${this.whiteBase}, 0.57)`, + disabled: `rgba(${this.whiteBase}, 0.58)`, link: palette.blueDarkText, maxContrast: palette.white, }; diff --git a/packages/grafana-ui/src/components/Alert/Alert.tsx b/packages/grafana-ui/src/components/Alert/Alert.tsx index d2fd72405e4..1679da447c4 100644 --- a/packages/grafana-ui/src/components/Alert/Alert.tsx +++ b/packages/grafana-ui/src/components/Alert/Alert.tsx @@ -60,7 +60,7 @@ export const Alert = React.forwardRef( {/* If onRemove is specified, giving preference to onRemove */} {onRemove && !buttonContent && (
- +
)} {onRemove && buttonContent && ( diff --git a/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.tsx b/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.tsx index 9df4a280f93..e375170e4b8 100644 --- a/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.tsx +++ b/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.tsx @@ -135,7 +135,7 @@ const DateTimeInput: FC = ({ date, label, onChange, isFullscreen, on } }, [internalDate.value, onChange]); - const icon =