修正订单数据二级菜单同级视觉 (#20)

This commit is contained in:
renshen 2026-08-07 14:37:38 +08:00
parent f3f55bbc11
commit 4ea2c03beb
3 changed files with 25 additions and 21 deletions

2
public/css/app.css vendored

File diff suppressed because one or more lines are too long

View File

@ -421,11 +421,6 @@ body {
background-color: var(--vip-content-accent) !important;
}
.finance-theme-sidebar .menu__submenu li::before,
.finance-theme-sidebar .menu__submenu details.relative::before {
background-color: rgba(242, 231, 197, 0.24);
}
*::-webkit-scrollbar {
width: 8px;
height: 8px;
@ -480,21 +475,6 @@ body {
@apply w-0 p-0 opacity-0;
}
.menu__submenu li::before {
@apply h-full absolute bg-gray-200 ltr:-left-4 rtl:-right-4;
content: '';
width: 1px;
}
.menu__submenu details.relative:before {
@apply h-full absolute bg-gray-200 ltr:-left-4 rtl:-right-4;
content: '';
width: 1px;
}
.menu__submenu li:last-child::before {
height: 20px;
}
/* menu */
/* element-ui */

View File

@ -0,0 +1,24 @@
<?php
namespace Tests\Unit\View;
use PHPUnit\Framework\TestCase;
class SidebarNavigationDesignTest extends TestCase
{
public function test_secondary_navigation_uses_one_active_indicator_without_tree_connectors(): void
{
$root = dirname(__DIR__, 3);
$source = file_get_contents($root . '/resources/assets/sass/app.css');
$compiled = file_get_contents($root . '/public/css/app.css');
$this->assertIsString($source);
$this->assertIsString($compiled);
$this->assertStringContainsString('.menu-active-indicator', $source);
$this->assertStringContainsString('.menu-active-indicator', $compiled);
$this->assertStringNotContainsString('.menu__submenu li::before', $source);
$this->assertStringNotContainsString('.menu__submenu details.relative:before', $source);
$this->assertStringNotContainsString('.menu__submenu li:before', $compiled);
$this->assertStringNotContainsString('.menu__submenu details.relative:before', $compiled);
}
}