Issue 610
tech-debt: a Disclosure kit component, then ban raw details and img
Back to our planDone
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:
Disclosureinsrc/platform/uiwith tests, axe check, gallery entry and component-set row. - Not done:
FaqListandOnThisPageuse it. - Not done: ESLint fails on a raw
details,summaryorimgoutside the kit.
Area
frontend, ci
Priority
high
Generated by Claude Code, opens in a new tab