chore(css): 治理提示块脚注样式组件化 + 护栏
This commit is contained in:
@@ -45,3 +45,10 @@
|
|||||||
font-size:12px;
|
font-size:12px;
|
||||||
line-height:1.5;
|
line-height:1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 可复用:治理提示块内的说明/脚注文本 */
|
||||||
|
.governance-block-footnote{
|
||||||
|
margin-top:6px;
|
||||||
|
font-size:12px;
|
||||||
|
line-height:1.5;
|
||||||
|
}
|
||||||
|
|||||||
@@ -358,8 +358,8 @@
|
|||||||
<li>最后处理 <a class="link" href="{{ request()->fullUrlWithQuery(['syncable_only' => '1', 'page' => null]) }}">可同步</a>:确认无对账/退款异常、无同步失败原因后,再批量同步订阅。</li>
|
<li>最后处理 <a class="link" href="{{ request()->fullUrlWithQuery(['syncable_only' => '1', 'page' => null]) }}">可同步</a>:确认无对账/退款异常、无同步失败原因后,再批量同步订阅。</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div class="muted muted-xs mt-6">说明:本页“批量同步/批量生效/清理失败标记”等工具动作会透传当前筛选条件;建议先缩小到明确集合再操作。</div>
|
<div class="muted governance-block-footnote">说明:本页“批量同步/批量生效/清理失败标记”等工具动作会透传当前筛选条件;建议先缩小到明确集合再操作。</div>
|
||||||
<div class="muted muted-xs mt-6">提示:如果你是从其它页面(例如订阅详情/套餐页)通过 back 进入本页,建议优先用上方「← 返回上一页(保留上下文)」回到来源页,再继续操作。</div>
|
<div class="muted governance-block-footnote">提示:如果你是从其它页面(例如订阅详情/套餐页)通过 back 进入本页,建议优先用上方「← 返回上一页(保留上下文)」回到来源页,再继续操作。</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminGovernanceBlockFootnoteUsesCssComponentTest extends TestCase
|
||||||
|
{
|
||||||
|
use RefreshDatabase;
|
||||||
|
|
||||||
|
protected function loginAsPlatformAdmin(): void
|
||||||
|
{
|
||||||
|
$this->seed();
|
||||||
|
|
||||||
|
$this->post('/admin/login', [
|
||||||
|
'email' => 'platform.admin@demo.local',
|
||||||
|
'password' => 'Platform@123456',
|
||||||
|
])->assertRedirect('/admin');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_platform_order_index_sop_footnote_should_use_governance_block_footnote_class(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$res = $this->get('/admin/platform-orders');
|
||||||
|
$res->assertOk();
|
||||||
|
|
||||||
|
// SOP 卡的两条说明应使用治理提示块的脚注样式类,避免 inline/散落工具类扩散
|
||||||
|
$res->assertSee('governance-block-footnote', false);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user