mirror of https://github.com/grafana/grafana
GrafanaUI: Add noBackdropBlur feature toggle (#102128)
* Create new noBackdropBlur feature toggle * Disable backdrop blur with feature togglepull/102207/head^2
parent
b3452ae720
commit
bf172dfd29
@ -0,0 +1,21 @@ |
||||
import { css } from '@emotion/react'; |
||||
|
||||
export interface Hacks { |
||||
hackNoBackdropBlur?: boolean; |
||||
} |
||||
|
||||
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', |
||||
}, |
||||
}, |
||||
]); |
||||
} |
||||
|
Loading…
Reference in new issue