refactor(icons): converge every icon render on aksrt_icon_markup
aksrt_get_comment_icon(), aksrt_renderer_svg_icon() and the widget renderer's private icon_markup() all delegate to the unified helper, and the duplicated 24px empty-state SVGs in user-center/user-home now come from one aksrt_empty_state_svgs(). Contract tests follow the delegation (sprite <use> markup asserted in the helper).
This commit is contained in:
@@ -184,7 +184,8 @@ test('list, card, media, badge and Mini DOM follow dedicated legacy structures',
|
||||
assert.ok(commentMeta >= 0 && commentMeta < viewMeta && viewMeta < likeMeta);
|
||||
assert.match(data, /comments_open.*close_comments/s);
|
||||
assert.match(data, /show_like.*post_type.*=== 'post'/s);
|
||||
assert.match(data, /<use xlink:href="#icon-/);
|
||||
// The <use> sprite markup lives in the unified helper aksrt_renderer_svg_icon delegates to.
|
||||
assert.match(read('inc/helpers/aksrt-icons.php'), /<use xlink:href="#icon-/);
|
||||
});
|
||||
|
||||
test('post-card CSS owns the exact desktop and 767/640 responsive matrix', () => {
|
||||
|
||||
Reference in New Issue
Block a user