From 4f0e836d2fc5a0f89523862524a29555250d7450 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 8 Apr 2024 00:44:30 +0300 Subject: [PATCH] Refactored Badge Style --- components/lib/badge/style/BadgeStyle.js | 2 +- components/lib/themes/primeone/base/badge/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/badge/style/BadgeStyle.js b/components/lib/badge/style/BadgeStyle.js index 1fa2f9c8f..e09a1d186 100644 --- a/components/lib/badge/style/BadgeStyle.js +++ b/components/lib/badge/style/BadgeStyle.js @@ -11,7 +11,7 @@ const classes = { 'p-badge-xl': props.size === 'xlarge', 'p-badge-info': props.severity === 'info', 'p-badge-success': props.severity === 'success', - 'p-badge-warning': props.severity === 'warning', + 'p-badge-warn': props.severity === 'warn', 'p-badge-danger': props.severity === 'danger', 'p-badge-secondary': props.severity === 'secondary', 'p-badge-contrast': props.severity === 'contrast' diff --git a/components/lib/themes/primeone/base/badge/index.js b/components/lib/themes/primeone/base/badge/index.js index 6d869d009..7b8eb41eb 100644 --- a/components/lib/themes/primeone/base/badge/index.js +++ b/components/lib/themes/primeone/base/badge/index.js @@ -55,7 +55,7 @@ export default { color: ${dt('badge.info.color')}; } -.p-badge-warning { +.p-badge-warn { background: ${dt('badge.warn.background')}; color: ${dt('badge.warn.color')}; }