fix: 隐藏退款子菜单活动箭头

This commit is contained in:
renshen 2026-08-12 10:44:37 +08:00
parent e6b245099c
commit 08d5773a5a
3 changed files with 24 additions and 5 deletions

5
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
);
}
}