隐藏退款子菜单三角标识 #33

Merged
renshen merged 2 commits from fix/renshen-refund-hide-active-indicator into main 2026-08-12 10:58:17 +08:00
3 changed files with 23 additions and 3 deletions

2
public/css/app.css vendored

File diff suppressed because one or more lines are too long

View File

@ -386,7 +386,8 @@ body {
line-height: 1rem !important;
}
.finance-theme-sidebar .menu__submenu a[href*="/workspace/order-data/"] .menu-active-indicator {
.finance-theme-sidebar .menu__submenu a[href*="/workspace/order-data/"] .menu-active-indicator,
.finance-theme-sidebar .menu__submenu a[href*="/workspace/refunds/"] .menu-active-indicator {
display: none;
}

View File

@ -32,6 +32,25 @@ class SidebarNavigationDesignTest extends TestCase
$this->assertIsString($source);
$this->assertIsString($compiled);
$this->assertStringContainsString($selector, $source);
$this->assertStringContainsString($selector . '{display:none}', $compiled);
$this->assertMatchesRegularExpression(
'/' . preg_quote($selector, '/') . '\s*,?[^{}]*\{\s*display:\s*none;?\s*\}/',
$compiled
);
}
public function test_refund_navigation_hides_the_active_indicator(): void
{
$root = dirname(__DIR__, 3);
$source = file_get_contents($root . '/resources/assets/sass/app.css');
$compiled = file_get_contents($root . '/public/css/app.css');
$selector = '.finance-theme-sidebar .menu__submenu a[href*="/workspace/refunds/"] .menu-active-indicator';
$this->assertIsString($source);
$this->assertIsString($compiled);
$this->assertStringContainsString($selector, $source);
$this->assertMatchesRegularExpression(
'/' . preg_quote($selector, '/') . '\s*\{\s*display:\s*none;?\s*\}/',
$compiled
);
}
}