Skip to content

Conversation

@ermenm
Copy link
Contributor

@ermenm ermenm commented Jan 21, 2026

No description provided.

@ermenm ermenm requested a review from a team as a code owner January 21, 2026 12:46
@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
clippy-storybook Ready Ready Preview, Comment Jan 21, 2026 7:21pm
theme-wizard Ready Ready Preview, Comment Jan 21, 2026 7:21pm
theme-wizard-server Ready Ready Preview, Comment Jan 21, 2026 7:21pm

Request Review

@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.60%. Comparing base (c454e47) to head (712bd78).
⚠️ Report is 175 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #454      +/-   ##
===========================================
- Coverage   100.00%   90.60%   -9.40%     
===========================================
  Files           12       50      +38     
  Lines          694     1426     +732     
  Branches       100      309     +209     
===========================================
+ Hits           694     1292     +598     
- Misses           0      110     +110     
- Partials         0       24      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud
Copy link

});

it('does not forward arbitrary anchor-specific attributes from the host', async () => {
document.body.innerHTML = `<${tag} download="file.pdf" hreflang="en" ping="https://example.com/ping" referrerpolicy="no-referrer" type="application/pdf"></${tag}>`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit gedrag als default snap ik niet zo goed. Het lijkt mij juist logisch dat je de clippy-link als een soort drop-in wil kunnen gebruiken voor elke link, ook een download link of een link in een andere taal. Nu werkt dat niet totdat je in de documentatie hebt gevonden dat je een extra (clippy-link-specifieke) attribute moet meegeven. Wat los je op door dit standaard niet door te geven?

## Extra properties via `restProps` (property-only)

Sommige `<a>`-properties zijn beschikbaar via `restProps` (dit is **geen** attribute-API; alleen via JavaScript). Deze properties worden via property bindings doorgestuurd naar het onderliggende `<a>` element:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoe werkt dit dan? Ik zie het namelijk niet terug in de code.

Wat is het voordeel van ze in de restProps stoppen? Waarom zou je ze niet laten forwarden?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oi oude implementatie en docs niet bijgewerkt! mijn fout

Comment on lines +219 to +220
.href=${t(`tokens.fieldLabels.basis.color.${colorKey}.docs`)}
.target=${"_blank"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waarom kunnen dit geen standaard href en target zijn, waarom is die . nodig in deze context? Het lijken me beide gewoon simpele strings


#handleNavClick(event: Event): void {
const link = (event.target as Element).closest('a[href^="#"]');
const link = (event.target as Element).closest('clippy-link[href^="#"], a[href^="#"]');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm dit voelt als code smell, als we deze functionaliteit willen ondersteunen willen we (lijkt mij) niet alle mogelijke tags die we in de body gebruiken waar een href op kan zitten ondersteunen.

Als ik t goed begrijp vang je de click af, enkel om te scrollen naar het element. Zou dit dan niet genoeg zijn:

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scroll-behavior

<clippy-link inline-box class="wizard-styleguide__nav-item" href="#colors">${t('styleGuide.sections.colors.title')}</clippy-link>
<clippy-link inline-box class="wizard-styleguide__nav-item" href="#typography">${t('styleGuide.sections.typography.title')}</clippy-link>
<clippy-link inline-box class="wizard-styleguide__nav-item" href="#spacing">${t('styleGuide.sections.space.title')}</clippy-link>
<clippy-link inline-box class="wizard-styleguide__nav-item" href="#components">${t('styleGuide.sections.components.title')}</clippy-link>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit voelt mij ook een beetje aan als code smell. Nu het componenten zijn met specifieke styling zou ik verwachten dat ze (uiteindelijk ook) voldoen in deze context. Voor nu zou ik t wel zo laten, want ik verwacht dat misschien ook een eigen component wordt.


<div>
<template-link-list
<clippy-link-list
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zit deze al in de repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

search replace foutje

ermenm added a commit that referenced this pull request Jan 22, 2026
~~We hebben een type Page en Category uit theme-wizard-templates, en die
werd geimporteerd in theme-wizard-app. Maar theme-wizard-app importeert
ook uit theme-wizard-templates, wat een build cycle error
veroorzaakte.~~

~~Dit heb ik tijdelijk opgelost door de type toe te voegen in
theme-wizard-app, waardoor theme-wizard-app niet meer afhankelijk is van
de build van theme-wizard-templates.~~

~~Vraag is of dit zo moet blijven, of een andere richting kiezen, voor
bijvoorbeeld een "shared" types package? Betekent wel dat je yet another
package hebt en de vraag is: hoevaak gaat dit nog voorkomen?~~

~~Dit heb ik gedaan, zodat de templates standalone kunnen draaien op de
theme-wizard-app url, dus lokaal bijvoorbeeld:
http://localhost:9492/templates/my-environment/overview~~

- [x] Typing van `TemplateGroup` in `wizard-preview-picker`
- [x] Componenten die in `theme-wizard-app` stonden en enkel in
`theme-wizard-templates` werden gebruikt, verplaatst naar
`theme-wizard-templates`
- [x] `template-heading `vervangen door `clippy-heading` en deze in
`packages/clippy-components` geplaatst
- [x] In deze PR (anders werd de huidige PR te groot), `template-link`
vervangen door `clippy-link` en deze in `packages/clippy-components`
geplaatst. [Clippy Link Webcomponent
PR](#454)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants