mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-23 01:29:47 +01:00
fix #1301
This commit is contained in:
parent
19ab07af96
commit
8ead084421
@ -158,12 +158,12 @@ export default [
|
|||||||
'alertPopupNeutral',
|
'alertPopupNeutral',
|
||||||
'alertPopupNeutralText',
|
'alertPopupNeutralText',
|
||||||
|
|
||||||
'badgeNotification',
|
|
||||||
'badgeNotificationText',
|
|
||||||
|
|
||||||
'badgeNeutral',
|
'badgeNeutral',
|
||||||
'badgeNeutralText',
|
'badgeNeutralText',
|
||||||
|
|
||||||
|
'badgeNotification',
|
||||||
|
'badgeNotificationText',
|
||||||
|
|
||||||
'chatBg',
|
'chatBg',
|
||||||
|
|
||||||
'chatMessageIncomingBg',
|
'chatMessageIncomingBg',
|
||||||
|
@ -517,6 +517,8 @@ export const convertTheme2To3 = (data) => {
|
|||||||
} else if (newRule.component === 'Badge') {
|
} else if (newRule.component === 'Badge') {
|
||||||
if (newRule.variant === 'notification') {
|
if (newRule.variant === 'notification') {
|
||||||
return [newRule, { component: 'Root', directives: { '--badgeNotification': 'color | ' + newRule.directives.background } }]
|
return [newRule, { component: 'Root', directives: { '--badgeNotification': 'color | ' + newRule.directives.background } }]
|
||||||
|
} else if (newRule.variant === 'neutral') {
|
||||||
|
return [{ ...newRule, variant: 'normal' }]
|
||||||
} else {
|
} else {
|
||||||
return [newRule]
|
return [newRule]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user