Skip to content

Commit 7901d32

Browse files
committed
set sentryFeedbackColorscheme when we create the host
1 parent 7d6adc6 commit 7901d32

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/feedback-async/src/integration.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,6 @@ export class FeedbackAsync implements Integration {
382382
needsAppendHost = true;
383383
}
384384

385-
// set data attribute on host for different themes
386-
this._host.dataset.sentryFeedbackColorscheme = options.colorScheme;
387-
388385
const result = cb({ shadow: this._shadow, host: this._host });
389386

390387
if (needsAppendHost) {

packages/feedback-async/src/widget/createShadowHost.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export function createShadowHost({ id, colorScheme, themeDark, themeLight }: Cre
1919
// Create the host
2020
const host = doc.createElement('div');
2121
host.id = id;
22+
// set data attribute on host for different themes
23+
host.dataset.sentryFeedbackColorscheme = colorScheme;
2224

2325
// Create the shadow root
2426
const shadow = host.attachShadow({ mode: 'open' });

0 commit comments

Comments
 (0)