-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom heading level option to radio component
Currently if the radio component is passed a heading, and the heading is not a "Page heading", then that heading is always a h2. This is not always appropriate; there are instances where more flexibility is necessary in order to maintain a correct hierarchical heading structure. This introduces the shared helper's heading level function to the radio component. This way we can ensure the default remains h2, while also having the ability to pass a custom heading level where necessary.
- Loading branch information
1 parent
77496db
commit ca7806f
Showing
3 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters