style(admin): row-warn shows help cursor for tooltip hints

This commit is contained in:
萝卜
2026-03-16 14:43:25 +08:00
parent 849707aae8
commit ee0c2afffd
2 changed files with 19 additions and 0 deletions

View File

@@ -679,6 +679,7 @@
border-left:3px solid var(--adm-error, #ef4444); border-left:3px solid var(--adm-error, #ef4444);
background:var(--adm-error-bg, #fef2f2); background:var(--adm-error-bg, #fef2f2);
border-radius:4px; border-radius:4px;
cursor:help;
} }
.platform-orders-table .row-warn a.link, .platform-orders-table .row-warn a.link,

View File

@@ -0,0 +1,18 @@
<?php
namespace Tests\Feature;
use Tests\TestCase;
class AdminDashboardRowWarnShouldHaveHelpCursorTest extends TestCase
{
public function test_admin_dashboard_row_warn_should_have_help_cursor(): void
{
$css = (string) file_get_contents(public_path('css/admin-components.css'));
// 仪表盘最近订单的 row-warn 都带 tooltiptitle应通过 cursor:help 让运营感知可 hover。
// 仍只做 token/关键字护栏,不做具体数值/像素断言。
$this->assertStringContainsString('[data-page="admin.dashboard"] .row-warn{', $css);
$this->assertStringContainsString('cursor:help', $css);
}
}