aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-04-04 12:30:51 +0300
committerHenry Jameson <me@hjkos.com>2024-04-04 22:40:50 +0300
commit8ead084421f4fa95d1db4ba295f4d55b5a075d24 (patch)
tree41f76e35ccf13f9c8c7ea16a386ad610db82c979 /src
parent19ab07af964f34087a41ac3cbabd81b2bb3147da (diff)
fix #1301
Diffstat (limited to 'src')
-rw-r--r--src/services/theme_data/theme2_keys.js6
-rw-r--r--src/services/theme_data/theme2_to_theme3.js2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/services/theme_data/theme2_keys.js b/src/services/theme_data/theme2_keys.js
index 69089e13..ffc5627c 100644
--- a/src/services/theme_data/theme2_keys.js
+++ b/src/services/theme_data/theme2_keys.js
@@ -158,12 +158,12 @@ export default [
'alertPopupNeutral',
'alertPopupNeutralText',
- 'badgeNotification',
- 'badgeNotificationText',
-
'badgeNeutral',
'badgeNeutralText',
+ 'badgeNotification',
+ 'badgeNotificationText',
+
'chatBg',
'chatMessageIncomingBg',
diff --git a/src/services/theme_data/theme2_to_theme3.js b/src/services/theme_data/theme2_to_theme3.js
index e150369f..6ea12836 100644
--- a/src/services/theme_data/theme2_to_theme3.js
+++ b/src/services/theme_data/theme2_to_theme3.js
@@ -517,6 +517,8 @@ export const convertTheme2To3 = (data) => {
} else if (newRule.component === 'Badge') {
if (newRule.variant === 'notification') {
return [newRule, { component: 'Root', directives: { '--badgeNotification': 'color | ' + newRule.directives.background } }]
+ } else if (newRule.variant === 'neutral') {
+ return [{ ...newRule, variant: 'normal' }]
} else {
return [newRule]
}