Skip to content

Commit

Permalink
fix(blocks): code block should update highlight when theme changed
Browse files Browse the repository at this point in the history
  • Loading branch information
donteatfriedrice committed Nov 5, 2024
1 parent 36df667 commit cdfba26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blocks/src/code-block/code-block-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class CodeBlockService extends BlockService {
}

get themeKey() {
const theme = this.std.get(ThemeProvider).theme;
const theme = this.std.get(ThemeProvider).theme$.value;
return theme === ColorScheme.Dark
? this._darkThemeKey
: this._lightThemeKey;
Expand Down

0 comments on commit cdfba26

Please sign in to comment.