mirror of https://github.com/grafana/grafana
GrafanaUI: Remove blurred background from overlay backdrops to improve performance (#103563)
* default noBackdropBlur to enabled * move blur from hacks to theme.components, tweak backdrop colour * remove toggle completely * fix unused importpull/103598/head
parent
7a1f1faca3
commit
577ea8f6a9
@ -1,21 +1,8 @@ |
|||||||
import { css } from '@emotion/react'; |
import { css } from '@emotion/react'; |
||||||
|
|
||||||
export interface Hacks { |
export interface Hacks {} |
||||||
hackNoBackdropBlur?: boolean; |
|
||||||
} |
|
||||||
|
|
||||||
export function getHacksStyles(hacks: Hacks) { |
export function getHacksStyles(hacks: Hacks) { |
||||||
return css([ |
// No hacks for now! Look how good we are!
|
||||||
/** |
return css([]); |
||||||
* Disables all backdrop blur effects to improve performance on extremely |
|
||||||
* resource constrained devices. |
|
||||||
* |
|
||||||
* Controlled via the `noBackdropBlur` feature toggle in Grafana |
|
||||||
*/ |
|
||||||
hacks.hackNoBackdropBlur && { |
|
||||||
'*, *:before, *:after': { |
|
||||||
backdropFilter: 'none !important', |
|
||||||
}, |
|
||||||
}, |
|
||||||
]); |
|
||||||
} |
} |
||||||
|
|
Loading…
Reference in new issue