mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NewPanelEditor: Enable new edit mode (#23405)
* WIP: initial commit to transition to new edit mode * More old edit cleanup * Minor update * Refactoring url edit/fullscreen state to simplify logic, now seperate states * Fixed tests and part of the explore integration * Updated snapshot * Fix alert rule links * Fixed issue going back from explore * Updated snapshots * Fixes and changes * Fixed bridge srv issue * Fixed add panel issue * Removed console log * Removed render * Tests: fixes e2e smoketest * Make description optional * Fixed typings * e2e fixes * removed import * updated snapshot Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import React, { ButtonHTMLAttributes } from 'react';
|
||||
import { css } from 'emotion';
|
||||
import { GrafanaTheme } from '@grafana/data';
|
||||
import { stylesFactory, useTheme, Tooltip, selectThemeVariant } from '@grafana/ui';
|
||||
import { selectThemeVariant, stylesFactory, Tooltip, useTheme } from '@grafana/ui';
|
||||
import { e2e } from '@grafana/e2e';
|
||||
|
||||
export type Props = ButtonHTMLAttributes<HTMLButtonElement>;
|
||||
|
||||
@@ -11,7 +12,7 @@ export const BackButton: React.FC<Props> = props => {
|
||||
|
||||
return (
|
||||
<Tooltip content="Go back (Esc)" placement="bottom">
|
||||
<button className={styles.wrapper} {...props}>
|
||||
<button className={styles.wrapper} {...props} aria-label={e2e.pages.Components.BackButton.selectors.backArrow}>
|
||||
<i className="gicon gicon-arrow-left" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
|
Reference in New Issue
Block a user