File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
static/app/components/feedback/widget Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11import { useEffect } from 'react' ;
2+ import { css , Global } from '@emotion/react' ;
23import { BrowserClient , getCurrentHub } from '@sentry/react' ;
34import { Feedback } from '@sentry-internal/feedback' ;
45
56import ConfigStore from 'sentry/stores/configStore' ;
67import { useLegacyStore } from 'sentry/stores/useLegacyStore' ;
8+ import theme from 'sentry/utils/theme' ;
79
810/**
911 * Use this to display the Feedback widget in certain routes/components
@@ -24,5 +26,14 @@ export default function FeedbackWidget() {
2426 } ;
2527 } , [ widgetTheme ] ) ;
2628
27- return null ;
29+ // z-index needs to be below our indicators which is 10001
30+ return (
31+ < Global
32+ styles = { css `
33+ # sentry-feedback {
34+ --z-index : ${ theme . zIndex . toast - 1 } ;
35+ }
36+ ` }
37+ />
38+ ) ;
2839}
You can’t perform that action at this time.
0 commit comments