fix(client): count IconGaugeOutline16 in the icon-set pin; keep the hero headline text addressable

The icon-set spec still pinned 74 exports after IconGaugeOutline16
landed (a hand-drawn product glyph — the set is now eight of those).
Moving the preview badge inside the hero title group had merged the
headline into one text node with the badge, which broke exact text
lookup (hmr-live e2e); the headline gets its own span again.
This commit is contained in:
Yif
2026-09-08 01:16:56 +08:00
parent 256afa848c
commit bbd899d478
2 changed files with 4 additions and 3 deletions
@@ -150,7 +150,8 @@ export function HeroShell({ t, renderSlot, children }: HeroShellProps) {
})}
</span>
<span className={css.titleGroup}>
{t('hero.headline')}
{/* Own element: keeps the headline text addressable apart from the badge. */}
<span>{t('hero.headline')}</span>
<span className={css.previewBadge}>{t('hero.preview')}</span>
</span>
</div>
@@ -17,8 +17,8 @@ const icons = Object.fromEntries(
const iconNames = Object.keys(icons)
describe('ic_ds_ icon set', () => {
it('exports the full icon set (46 deepsuite + 21 figma extracts + seven product glyphs outside those sets)', () => {
expect(iconNames.length).toBe(74)
it('exports the full icon set (46 deepsuite + 21 figma extracts + eight product glyphs outside those sets)', () => {
expect(iconNames.length).toBe(75)
})
it.each(iconNames)('%s renders an svg with currentColor fills and no hardcoded palette', (name) => {