Chore: Remove gf-form and change to CSS object in Graphite function editor (#79446)

Chore: remove gf-form and add CSS fumction object
This commit is contained in:
Tobias Skarhed
2023-12-15 11:29:34 +02:00
committed by GitHub
parent f053cc7aae
commit 79fca7dce4
2 changed files with 4 additions and 7 deletions
-3
View File
@@ -5152,9 +5152,6 @@ exports[`better eslint`] = {
"public/app/plugins/datasource/graphite/components/AddGraphiteFunction.tsx:5381": [
[0, 0, 0, "Styles should be written using objects.", "0"]
],
"public/app/plugins/datasource/graphite/components/FunctionEditor.tsx:5381": [
[0, 0, 0, "Styles should be written using objects.", "0"]
],
"public/app/plugins/datasource/graphite/components/FunctionParamEditor.tsx:5381": [
[0, 0, 0, "Styles should be written using objects.", "0"]
],
@@ -14,12 +14,12 @@ interface FunctionEditorProps extends FunctionEditorControlsProps {
const getStyles = (theme: GrafanaTheme2) => {
return {
icon: css`
margin-right: ${theme.spacing(0.5)};
`,
icon: css({
marginRight: theme.spacing(0.5),
}),
label: css({
fontWeight: theme.typography.fontWeightMedium,
fontSize: theme.typography.bodySmall.fontSize, // to match .gf-form-label
fontSize: theme.typography.bodySmall.fontSize,
cursor: 'pointer',
display: 'inline-block',
}),