Explore: Convert SASS styles of explore-active-button to emotion (#50061)

* Chore: replace sass styling by emotion incl. new theme

* Chore: remove sass styling

* Chore: change colour

* Chore: change colour

* Chore: clean up

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
pull/50616/head
Laura 3 years ago committed by GitHub
parent 9d73264895
commit 85ecf997be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      public/app/features/explore/SecondaryActions.tsx
  2. 6
      public/sass/pages/_explore.scss

@ -21,6 +21,11 @@ const getStyles = (theme: GrafanaTheme2) => {
containerMargin: css`
margin-top: ${theme.spacing(2)};
`,
exploreActiveButton: css`
box-shadow: ${theme.shadows.z1};
border: 1px solid ${theme.colors.warning.border};
color: ${theme.colors.warning.text};
`,
};
};
export function SecondaryActions(props: Props) {
@ -44,7 +49,7 @@ export function SecondaryActions(props: Props) {
<Button
variant="secondary"
aria-label="Rich history button"
className={cx({ ['explore-active-button']: props.richHistoryButtonActive })}
className={cx({ [styles.exploreActiveButton]: props.richHistoryButtonActive })}
onClick={props.onClickRichHistoryButton}
icon="history"
>
@ -54,7 +59,7 @@ export function SecondaryActions(props: Props) {
<Button
variant="secondary"
aria-label="Query inspector button"
className={cx({ ['explore-active-button']: props.queryInspectorButtonActive })}
className={cx({ [styles.exploreActiveButton]: props.queryInspectorButtonActive })}
onClick={props.onClickQueryInspectorButton}
icon="info-circle"
>

@ -1,9 +1,3 @@
.explore-active-button {
box-shadow: $btn-active-box-shadow;
border: 1px solid $orange-dark !important;
color: $orange-dark !important;
}
// TODO: check if this is used
.explore {
display: flex;

Loading…
Cancel
Save