1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-22 20:29:29 +01:00
This commit is contained in:
Henry Jameson 2024-04-04 12:30:51 +03:00
parent 19ab07af96
commit 8ead084421
2 changed files with 5 additions and 3 deletions

View File

@ -158,12 +158,12 @@ export default [
'alertPopupNeutral',
'alertPopupNeutralText',
'badgeNotification',
'badgeNotificationText',
'badgeNeutral',
'badgeNeutralText',
'badgeNotification',
'badgeNotificationText',
'chatBg',
'chatMessageIncomingBg',

View File

@ -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]
}