收口充值弹窗图标槽

将充值结果弹窗和支付确认遮罩的图标槽迁移到共享 PlatformIconBadge
为 PlatformIconBadge 补充稳定类名并更新相关测试
同步更新 PlatformUiKit 收口文档与团队决策记录
This commit is contained in:
2026-06-10 16:35:31 +08:00
parent cb01d33944
commit 9141540c37
6 changed files with 29 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ test('renders neutral circular icon badge by default', () => {
const badge = document.querySelector('[aria-hidden="true"]');
expect(badge?.className).toContain('platform-icon-badge');
expect(badge?.className).toContain('h-9');
expect(badge?.className).toContain('rounded-full');
expect(badge?.className).toContain('bg-[var(--platform-neutral-bg)]');

View File

@@ -69,6 +69,7 @@ export function PlatformIconBadge({
aria-label={label}
aria-hidden={label ? undefined : true}
className={[
'platform-icon-badge',
'grid shrink-0 place-items-center',
PLATFORM_ICON_BADGE_SIZE_CLASS[size],
PLATFORM_ICON_BADGE_SHAPE_CLASS[shape],