style(admin): row-warn shows help cursor for tooltip hints
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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 都带 tooltip(title),应通过 cursor:help 让运营感知可 hover。
|
||||||
|
// 仍只做 token/关键字护栏,不做具体数值/像素断言。
|
||||||
|
$this->assertStringContainsString('[data-page="admin.dashboard"] .row-warn{', $css);
|
||||||
|
$this->assertStringContainsString('cursor:help', $css);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user