From a9a3e6ee1c41bf55da87c15b86d8f3e5afd449f5 Mon Sep 17 00:00:00 2001 From: Filip Date: Tue, 26 Nov 2024 11:58:57 -0800 Subject: [PATCH] fix: revert padding change for kebab menu ff (#1818) --- .../components/BaseAnalyticsChartRenderer.vue | 2 +- .../src/components/DashboardRenderer.vue | 7 ++----- .../src/components/DashboardTile.vue | 20 +++++++++++++------ 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/packages/analytics/dashboard-renderer/src/components/BaseAnalyticsChartRenderer.vue b/packages/analytics/dashboard-renderer/src/components/BaseAnalyticsChartRenderer.vue index 7d27d8b73a..1f49083ec7 100644 --- a/packages/analytics/dashboard-renderer/src/components/BaseAnalyticsChartRenderer.vue +++ b/packages/analytics/dashboard-renderer/src/components/BaseAnalyticsChartRenderer.vue @@ -88,6 +88,6 @@ const onChartData = (data: ExploreResultV4) => { diff --git a/packages/analytics/dashboard-renderer/src/components/DashboardRenderer.vue b/packages/analytics/dashboard-renderer/src/components/DashboardRenderer.vue index 9acd519a9b..f1034a117d 100644 --- a/packages/analytics/dashboard-renderer/src/components/DashboardRenderer.vue +++ b/packages/analytics/dashboard-renderer/src/components/DashboardRenderer.vue @@ -48,7 +48,7 @@ import { TIMEFRAME_TOKEN, } from '../constants' import { useAnalyticsConfigStore } from '@kong-ui-public/analytics-config-store' -import { KUI_SPACE_70, KUI_SPACE_30 } from '@kong/design-tokens' +import { KUI_SPACE_70 } from '@kong/design-tokens' const props = defineProps<{ context: DashboardRendererContext, @@ -73,9 +73,6 @@ if (!queryBridge) { console.warn('https://github.com/Kong/public-ui-components/blob/main/packages/analytics/dashboard-renderer/README.md#requirements') } -const { evaluateFeatureFlag } = composables.useEvaluateFeatureFlag() -const hasKebabMenuAccess = evaluateFeatureFlag('ma-3043-analytics-chart-kebab-menu', false) - const configStore = useAnalyticsConfigStore() const timeSpec = computed(() => { @@ -185,7 +182,7 @@ defineExpose({ refresh: refreshTiles }) border: var(--kui-border-width-10, $kui-border-width-10) solid var(--kui-color-border, $kui-color-border); border-radius: var(--kui-border-radius-20, $kui-border-radius-20); height: 100%; - padding: v-bind('!hasKebabMenuAccess ? KUI_SPACE_70 : KUI_SPACE_30'); + padding: var(--kui-space-70, $kui-space-70); } } diff --git a/packages/analytics/dashboard-renderer/src/components/DashboardTile.vue b/packages/analytics/dashboard-renderer/src/components/DashboardTile.vue index 2e861a9000..74bb2a4ae7 100644 --- a/packages/analytics/dashboard-renderer/src/components/DashboardTile.vue +++ b/packages/analytics/dashboard-renderer/src/components/DashboardTile.vue @@ -69,12 +69,14 @@ @toggle-modal="setExportModalVisibility" /> - +
+ +