From 74b291d03b95bf0267551645130092656b5c7e55 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Mon, 26 May 2025 19:44:39 +0300 Subject: [PATCH] Provisioning: Use theme colors in TokenPermissionsInfo (#106014) --- .betterer.results | 7 ------- .../provisioning/Shared/TokenPermissionsInfo.tsx | 2 +- .../app/features/provisioning/Wizard/ConnectStep.tsx | 10 +++++++++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.betterer.results b/.betterer.results index 00f89db007f..a98a09ed15f 100644 --- a/.betterer.results +++ b/.betterer.results @@ -2738,13 +2738,6 @@ exports[`better eslint`] = { [0, 0, 0, "Add noMargin prop to Card components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"], [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "1"] ], - "public/app/features/provisioning/Wizard/ConnectStep.tsx:5381": [ - [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"], - [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "1"], - [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "2"], - [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "3"], - [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "4"] - ], "public/app/features/provisioning/Wizard/FinishStep.tsx:5381": [ [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"], [0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "1"], diff --git a/public/app/features/provisioning/Shared/TokenPermissionsInfo.tsx b/public/app/features/provisioning/Shared/TokenPermissionsInfo.tsx index f248fd48bf1..e0200190385 100644 --- a/public/app/features/provisioning/Shared/TokenPermissionsInfo.tsx +++ b/public/app/features/provisioning/Shared/TokenPermissionsInfo.tsx @@ -65,7 +65,7 @@ function getStyles(theme: GrafanaTheme2) { }), accessLevel: css({ fontFamily: theme.typography.fontFamilyMonospace, - background: '#22262B', + background: theme.colors.background.secondary, borderRadius: theme.shape.radius.default, padding: theme.spacing(0.25, 0.5), }), diff --git a/public/app/features/provisioning/Wizard/ConnectStep.tsx b/public/app/features/provisioning/Wizard/ConnectStep.tsx index 954a95efdc9..a02b73fc0b5 100644 --- a/public/app/features/provisioning/Wizard/ConnectStep.tsx +++ b/public/app/features/provisioning/Wizard/ConnectStep.tsx @@ -28,6 +28,7 @@ export function ConnectStep() { <> - + )} {type === 'local' && (