Skip to content

Commit bdff8a8

Browse files
authored
Adhoc filter fix, update sankey plugin (#106)
* Adhoc filter style fix * Update sankey plugin
1 parent b8ea479 commit bdff8a8

File tree

7 files changed

+136
-249
lines changed

7 files changed

+136
-249
lines changed

packages/grafana-ui/src/themes/mixins.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ export function mediaUp(breakpoint: string) {
4040
return `only screen and (min-width: ${breakpoint})`;
4141
}
4242

43-
// const isGrafanaTheme2 = (theme: GrafanaTheme | GrafanaTheme2): theme is GrafanaTheme2 => theme.hasOwnProperty('v1');
43+
const isGrafanaTheme2 = (theme: GrafanaTheme | GrafanaTheme2): theme is GrafanaTheme2 => theme.hasOwnProperty('v1');
4444
export const focusCss = (theme: GrafanaTheme | GrafanaTheme2) => {
45-
/* const isTheme2 = isGrafanaTheme2(theme);
45+
const isTheme2 = isGrafanaTheme2(theme);
4646
const firstColor = isTheme2 ? theme.colors.background.canvas : theme.colors.bodyBg;
4747
const secondColor = isTheme2 ? theme.colors.primary.main : theme.colors.formFocusOutline;
48-
box-shadow: 0 0 0 2px ${firstColor}, 0 0 0px 4px ${secondColor}; */
4948

5049
return `
5150
outline: 2px dotted transparent;
5251
outline-offset: 2px;
52+
box-shadow: 0 0 0 2px ${firstColor}, 0 0 0px 4px ${secondColor};
5353
transition-property: outline, outline-offset, box-shadow;
5454
transition-duration: 0.2s;
5555
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);`;

public/app/features/variables/pickers/PickerRenderer.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@ const renderWrapperStyle = css`
2525
font-size: 12px;
2626
line-height: 24px;
2727
}
28-
& span {
28+
29+
/* Center align filter picker buttons */
30+
& button {
2931
margin-top: 2px;
3032
}
33+
34+
/* Adhoc filter: Disable green border and make input height similar to others */
35+
& div[class*='input-wrapper'] {
36+
min-height: 0 !important;
37+
box-shadow: none !important;
38+
}
3139
`;
3240

3341
export const PickerRenderer: FunctionComponent<Props> = (props) => {

public/app/plugins/panel/sankey-panel-0.5.0/logo.svg

-20
This file was deleted.

0 commit comments

Comments
 (0)