diff --git a/inc/helpers/aksrt-header-userbox.php b/inc/helpers/aksrt-header-userbox.php index bc9e52a4..9b1e1cbf 100644 --- a/inc/helpers/aksrt-header-userbox.php +++ b/inc/helpers/aksrt-header-userbox.php @@ -59,13 +59,13 @@ if (!function_exists('aksrt_header_user_checkin_btn')) : // 用户卡片签到书签:保留书签类与 is-done 视觉,仅将行为切换为打开详情弹窗。 return aksrt_get_user_checkin_details_link( $class . ' is-done', - '' + '' . '' . esc_html__('已签到', 'aksrt') . '' ); } return aksrt_get_user_checkin_details_link( 'but block c-yellow is-done', - '' + ' ' . esc_html__('今日已签到', 'aksrt') ); } @@ -77,7 +77,7 @@ if (!function_exists('aksrt_header_user_checkin_btn')) : return '' - . '' + . '' . '' . esc_html__('签到', 'aksrt') . '' . ''; } @@ -85,7 +85,7 @@ if (!function_exists('aksrt_header_user_checkin_btn')) : return '' - . '' + . ' ' . '' . esc_html__('签到领取今日奖励', 'aksrt') . '' . ''; } diff --git a/tests/navigation/legacy-navigation-contract.test.cjs b/tests/navigation/legacy-navigation-contract.test.cjs index 1f1fbece..7990fedd 100644 --- a/tests/navigation/legacy-navigation-contract.test.cjs +++ b/tests/navigation/legacy-navigation-contract.test.cjs @@ -217,6 +217,14 @@ test('the account popover rows match the reference user box structure', () => { // Check-in entry is an anchor with the reference button classes. assert.match(header, /but block c-yellow/); assert.match(header, /data-signin-done-label[\s\S]{0,120}?今日已签到/); + // The reference renders fa-calendar-check-o, an outline glyph; FA5 keeps that + // look through the regular weight rather than the solid one. + assert.match(header, /fa far fa-calendar-check/); + assert.doesNotMatch(header, /fas fa-calendar-check/); + // .but already gives its icon a 0.25em margin, so the popover entry carries no + // margin class; the user-card badge keeps its own because it is not a .but. + assert.match(header, /