Skip to content
SprecherEast
Issue 610

tech-debt: a Disclosure kit component, then ban raw details and img

Back to our plan
Done
cifrontendtech-debtpriority: high

Problem

In plain words: rule 2 of the guard rails (docs/guidelines/guard-rails.md) says no raw <details>, <img> or inline SVG outside the UI kit, but there is no kit component for a disclosure and lint doesn't ban them. FaqList and the "On this page" bar use raw <details>.

Proposed fix

Add a Disclosure kit component (native <details> inside it), move FaqList and OnThisPage onto it, then ban raw details, summary and img outside the kit in eslint.ui-kit.config.mjs.

Acceptance criteria

  • Not done: Disclosure in src/platform/ui with tests, axe check, gallery entry and component-set row.
  • Not done: FaqList and OnThisPage use it.
  • Not done: ESLint fails on a raw details, summary or img outside the kit.

Area

frontend, ci

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab