Skip to content

Commit

Permalink
Clarify that heading level has no visual effect
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Jun 7, 2024
1 parent 9b5038a commit 9ec5da7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/react/src/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export type AlertProps = {
closeButtonLabel?: string
/** The text for the Heading. */
heading?: string
/** The hierarchical level of the Heading within the document. */
/**
* The hierarchical level of the Heading within the document.
* Note: this intentionally does not change the font size.
*/
headingLevel?: HeadingLevel
/** A function to run when dismissing. */
onClose?: () => void
Expand Down
5 changes: 4 additions & 1 deletion packages/react/src/FormErrorList/FormErrorList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export type FormErrorListProps = {
errors: FormError[]
/** The text for the Heading. */
heading?: string
/** The hierarchical level of the Heading within the document. */
/**
* The hierarchical level of the Heading within the document.
* Note: this intentionally does not change the font size.
*/
headingLevel?: HeadingLevel
} & HTMLAttributes<HTMLDivElement>

Expand Down
5 changes: 4 additions & 1 deletion packages/react/src/TableOfContents/TableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import type { HeadingLevel } from '../Heading'
export type TableOfContentsProps = {
/** The text for the Heading. */
heading?: string
/** The hierarchical level of the Heading within the document. */
/**
* The hierarchical level of the Heading within the document.
* Note: this intentionally does not change the font size.
*/
headingLevel?: HeadingLevel
} & PropsWithChildren<HTMLAttributes<HTMLElement>>

Expand Down

0 comments on commit 9ec5da7

Please sign in to comment.