style(admin): highlight targeted platform order sections via :target
This commit is contained in:
@@ -704,6 +704,16 @@
|
||||
margin-right:4px;
|
||||
}
|
||||
|
||||
/* 平台订单详情页:锚点直达高亮(从仪表盘/集合跳转时更清晰) */
|
||||
#relation-subscription:target,
|
||||
#sync-failed:target,
|
||||
#bmpa-failed:target,
|
||||
#payment-receipts:target,
|
||||
#refund-receipts:target{
|
||||
scroll-margin-top:90px;
|
||||
box-shadow:0 0 0 3px var(--adm-primary-focus-ring, rgba(22, 119, 255, .12)), var(--adm-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
|
||||
}
|
||||
|
||||
/* 平台订单列表:精简视图也要可达的治理提示(对账/退款不一致) */
|
||||
.platform-orders-table .governance-hints{
|
||||
margin-bottom:6px;
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminComponentsCssShouldIncludeTargetHighlightForPlatformOrderAnchorsTest extends TestCase
|
||||
{
|
||||
public function test_admin_components_css_should_include_target_highlight_for_platform_order_anchors(): void
|
||||
{
|
||||
$css = (string) file_get_contents(public_path('css/admin-components.css'));
|
||||
|
||||
// 护栏:订单详情页通过锚点直达治理区块时,应有 :target 高亮,增强可达性。
|
||||
$this->assertStringContainsString('#relation-subscription:target', $css);
|
||||
$this->assertStringContainsString('#sync-failed:target', $css);
|
||||
$this->assertStringContainsString('#bmpa-failed:target', $css);
|
||||
$this->assertStringContainsString('#payment-receipts:target', $css);
|
||||
$this->assertStringContainsString('#refund-receipts:target', $css);
|
||||
|
||||
// 使用主题 token(focus ring / shadow)
|
||||
$this->assertStringContainsString('var(--adm-primary-focus-ring', $css);
|
||||
$this->assertStringContainsString('var(--adm-shadow-sm', $css);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user