Skip to content

Commit

Permalink
feat: Deprecate default heading levels (#1947)
Browse files Browse the repository at this point in the history
* deprecate default heading level

* change tests and stories for Alert and AccordionItem

* change tests and stories for CollectionHeading

* change tests and stories for StepIndicator

* fix tests

* set Heading with const

* factor out test text
  • Loading branch information
Isaac Garfinkle authored Apr 14, 2022
1 parent ebe1b87 commit 512a901
Show file tree
Hide file tree
Showing 12 changed files with 254 additions and 244 deletions.
9 changes: 7 additions & 2 deletions src/components/Accordion/Accordion.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Accordion } from './Accordion'
import { Accordion, AccordionItemProps } from './Accordion'

export default {
title: 'Components/Accordion',
Expand All @@ -17,7 +17,7 @@ Source: https://designsystem.digital.gov/components/accordion/
},
}

const testItems = [
const testItems: AccordionItemProps[] = [
{
title: 'First Amendment',
content: (
Expand All @@ -30,6 +30,7 @@ const testItems = [
),
expanded: false,
id: '123',
headingLevel: 'h4',
},
{
title: 'Second Amendment',
Expand All @@ -48,6 +49,7 @@ const testItems = [
),
expanded: false,
id: 'abc',
headingLevel: 'h4',
},
{
title: 'Third Amendment',
Expand All @@ -60,6 +62,7 @@ const testItems = [
),
expanded: false,
id: 'def',
headingLevel: 'h4',
},
{
title: 'Fourth Amendment',
Expand All @@ -74,6 +77,7 @@ const testItems = [
),
expanded: false,
id: '456',
headingLevel: 'h4',
},
{
title: 'Fifth Amendment',
Expand All @@ -92,6 +96,7 @@ const testItems = [
),
expanded: false,
id: '789',
headingLevel: 'h4',
},
]

Expand Down
Loading

0 comments on commit 512a901

Please sign in to comment.