Skip to content

Commit

Permalink
Merge pull request #17583 from ElectronicBlueberry/theme-selector-res…
Browse files Browse the repository at this point in the history
…et-vars

Apply default theme to theme selector
  • Loading branch information
dannon authored Mar 4, 2024
2 parents d02c11a + 955d7ec commit db98eb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/User/ThemeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ watch(
</script>
<template>
<b-card :show="show" class="mr-3 overflow-auto">
<b-card :show="show" class="mr-3 overflow-auto reset-theme-variables">
<b-form-radio-group v-model="currentValue">
<b-form-radio
v-for="(themeDetails, theme, index) in config.themes"
Expand Down
3 changes: 2 additions & 1 deletion client/src/style/scss/custom_theme_variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "theme/blue.scss";

html {
html,
.reset-theme-variables {
--masthead-color: #{$masthead-color};
--masthead-text-color: #{$masthead-text-color};
--masthead-text-hover: #{$masthead-text-hover};
Expand Down

0 comments on commit db98eb4

Please sign in to comment.