fix(user-center): 1:1 port reference sidebar service/settings icon boxes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9fbfab54c2
commit
6ded62df92
3 files changed
+45
-14
No files matched your search
@@ -112,7 +112,18 @@ test('旧 uc-service-grid 外壳与色调底色已彻底移除', () => {
|
||||
// 参考主题网格尺寸落地。
|
||||
assert.match(shell, /\.user-icon-but-box > a \{[^}]*width: calc\(25% - 10px\)/s);
|
||||
assert.match(shell, /\.user-icon-but-box > a \{[^}]*min-width: 50px/s);
|
||||
assert.match(shell, /\.user-icon-but-box > a\.is-active/);
|
||||
// 参考主题网格项没有 hover / 选中变色,只继承正文色。
|
||||
assert.doesNotMatch(shell, /\.user-icon-but-box > a\.is-active/);
|
||||
assert.match(shell, /\.user-icon-but-box > a \{[^}]*color: inherit/s);
|
||||
|
||||
// 外壳与标题 1:1 参考主题 zib-widget padding-6 / padding-6 ml3。
|
||||
const nav = read(sidebarDir + 'sidebar-nav.php');
|
||||
assert.match(nav, /class="uc-sidebar-iconbox zib-widget padding-6 mb10-sm"/);
|
||||
assert.match(nav, /class="uc-sidebar-iconbox zib-widget padding-6"/);
|
||||
assert.match(nav, /<div class="padding-6 ml3"><\?php esc_html_e\('我的服务'/);
|
||||
assert.match(nav, /<div class="padding-6 ml3"><\?php esc_html_e\('功能设置'/);
|
||||
assert.doesNotMatch(nav, /uc-sidebar__heading/);
|
||||
assert.match(shell, /\.uc-sidebar-iconbox\.zib-widget \{/);
|
||||
|
||||
// 卡片上的 <i> 已换成 <svg>,元素选择器需覆盖两者。
|
||||
assert.match(shell, /\.uc-summary-card__body > svg/);
|
||||
|
||||
Reference in new issue
Block a user