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'; |
||||
|
||||
export interface Hacks { |
||||
hackNoBackdropBlur?: boolean; |
||||
} |
||||
export interface Hacks {} |
||||
|
||||
export function getHacksStyles(hacks: Hacks) { |
||||
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', |
||||
}, |
||||
}, |
||||
]); |
||||
// No hacks for now! Look how good we are!
|
||||
return css([]); |
||||
} |
||||
|
|
Loading…
Reference in new issue