From 2be4d8dfd08c5f58570eb3632e627025e422fc42 Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Wed, 12 Feb 2020 20:11:40 +0100 Subject: [PATCH] Explore: Refactor active buttons css (#22124) --- .../src/components/TimePicker/TimePicker.tsx | 15 +-------------- public/app/features/explore/LiveTailButton.tsx | 4 ++-- public/app/features/explore/TimeSyncButton.tsx | 15 +-------------- .../__snapshots__/TimeSyncButton.test.tsx.snap | 2 +- public/sass/pages/_explore.scss | 16 +++++++++++++++- 5 files changed, 20 insertions(+), 32 deletions(-) diff --git a/packages/grafana-ui/src/components/TimePicker/TimePicker.tsx b/packages/grafana-ui/src/components/TimePicker/TimePicker.tsx index ebea926d9dc..5e16255a545 100644 --- a/packages/grafana-ui/src/components/TimePicker/TimePicker.tsx +++ b/packages/grafana-ui/src/components/TimePicker/TimePicker.tsx @@ -69,19 +69,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => { font-size: ${theme.typography.size.md}; } `, - syncedTimePicker: css` - label: syncedTimePicker; - border-color: ${theme.colors.orangeDark}; - background-image: none; - background-color: transparent; - color: ${theme.colors.orangeDark}; - &:focus, - :hover { - color: ${theme.colors.orangeDark}; - background-image: none; - background-color: transparent; - } - `, noRightBorderStyle: css` label: noRightBorderStyle; border-right: 0; @@ -160,7 +147,7 @@ export class UnthemedTimePicker extends PureComponent { const timePickerIconClass = cx('fa fa-clock-o fa-fw', { ['icon-brand-gradient']: syncedTimePicker }); const timePickerButtonClass = cx('btn navbar-button navbar-button--tight', { [`btn--radius-right-0 ${styles.noRightBorderStyle}`]: !!timeSyncButton, - [`explore-active-button-glow ${styles.syncedTimePicker}`]: syncedTimePicker, + [`explore-active-button`]: syncedTimePicker, }); return ( diff --git a/public/app/features/explore/LiveTailButton.tsx b/public/app/features/explore/LiveTailButton.tsx index 80aeeb26820..0528a6e4b10 100644 --- a/public/app/features/explore/LiveTailButton.tsx +++ b/public/app/features/explore/LiveTailButton.tsx @@ -124,7 +124,7 @@ export function LiveTailButton(props: LiveTailButtonProps) {