oh-cell: Fix headerBadgeColor (#2807)

The color attribute for the header badges in the oh-cell were not
dynamic and as a result setting headerBadgeColor in the cell config
caused a malformed color class to be added to the badge.
pull/2820/head
JustinGeorgi 2024-10-21 04:46:49 -07:00 committed by GitHub
parent f5f3a3e837
commit a1787ed386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -23,14 +23,14 @@
<div slot="header" v-if="header" class="button-header display-flex">
<oh-icon class="header-icon" v-if="config.icon" :icon="config.icon" :color="config.iconColor" width="20" height="20" />
<span class="header-text">{{ header }}</span>
<f7-badge v-if="config.headerBadge" color="config.headerBadgeColor">
<f7-badge v-if="config.headerBadge" :color="config.headerBadgeColor">
{{ config.headerBadge }}
</f7-badge>
</div>
<div slot="title" v-if="config.title" class="button-header display-flex">
<oh-icon class="header-icon" v-if="!header && config.icon" :icon="config.icon" :color="config.iconColor" width="20" height="20" />
<span class="header-text">{{ config.title }}</span>
<f7-badge v-if="config.headerBadge" color="config.headerBadgeColor">
<f7-badge v-if="config.headerBadge" :color="config.headerBadgeColor">
{{ config.headerBadge }}
</f7-badge>
</div>