fix(submit): drop the redundant featured preview type badge
The reference theme renders no type badge in the featured box; the swiper and dplayer previews are self-explanatory. Remove it from both preview branches and delete the now-unused CSS rule.
This commit is contained in:
@@ -65,6 +65,16 @@ test('slide cover preview renders a real swiper like the reference theme', () =>
|
||||
assert.doesNotMatch(js, /escapeHtml\(d\[0\]\.url\)/);
|
||||
});
|
||||
|
||||
test('featured previews carry no type badge like the reference theme', () => {
|
||||
const featured = read('templates/parts/submit/featured.php');
|
||||
const js = read('assets/js/front-submit.js');
|
||||
const css = read('assets/css/frontend/pages/submit.css');
|
||||
|
||||
assert.doesNotMatch(featured, /featured-type-badge/);
|
||||
assert.doesNotMatch(js, /featured-type-badge/);
|
||||
assert.doesNotMatch(css, /featured-type-badge/);
|
||||
});
|
||||
|
||||
test('submit.css mirrors the reference visibility matrix for the buttons row', () => {
|
||||
const css = read('assets/css/frontend/pages/submit.css');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user