Skip to content

Commit

Permalink
docs: mark accordion as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarni committed Jan 14, 2025
1 parent 744d5b2 commit e530106
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/accordion-react/documentation/accordion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ import {
accordionExampleKnobs,
} from "./AccordionExample";

import { WarningTag } from "@fremtind/jkl-tag-react";
import { Link } from "@fremtind/jkl-core";

<div
style={{ display: "flex", flexDirection: "row", gap: 8, marginBottom: 16 }}
>
<WarningTag lang="en">Deprecated</WarningTag>
<p>
Bruk heller <Link href="/komponenter/expandable">ExpandablePanel</Link>
</p>
</div>

<Ingress>
Med trekkspillister kan vi presentere mye innhold på liten plass. En
trekkspilliste har én eller flere rader, som brukeren kan klikke på for å
Expand Down
1 change: 1 addition & 0 deletions packages/accordion-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@fremtind/jkl-expand-button": "^7.1.15",
"@fremtind/jkl-icons": "^10.1.13",
"@fremtind/jkl-list-react": "^10.2.29",
"@fremtind/jkl-tag-react": "^6.0.8",
"@rollup/plugin-terser": "^0.4.4",
"@vitejs/plugin-react-swc": "^3.7.2",
"glob": "^8.1.0",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e530106

Please sign in to comment.