style(admin): scope row-warn styles for dashboard and keep platform orders guards

This commit is contained in:
萝卜
2026-03-16 14:22:16 +08:00
parent 51172e2664
commit ce26dd0454
5 changed files with 36 additions and 8 deletions

View File

@@ -32,9 +32,10 @@ class AdminComponentsCssGovernanceBlocksShouldUseThemeTokensTest extends TestCas
$this->assertStringContainsString('background:var(--adm-error-bg', $css);
// 列表行内治理提示row-warn也必须用 token。
$this->assertStringContainsString('.platform-orders-table .row-warn{', $css);
// row-warn/row-warn-prefix 允许复用到仪表盘(按页面 scope但平台订单列表的 scope 仍必须存在。
$this->assertStringContainsString('.platform-orders-table .row-warn', $css);
$this->assertStringContainsString('border-left:3px solid var(--adm-error', $css);
$this->assertStringContainsString('.platform-orders-table .row-warn-prefix{', $css);
$this->assertStringContainsString('.platform-orders-table .row-warn-prefix', $css);
$this->assertStringContainsString('background:var(--adm-error-tint', $css);
}
}