diff --git a/.changeset/clean-icons-complain.md b/.changeset/clean-icons-complain.md new file mode 100644 index 0000000000..8d54e4d6e5 --- /dev/null +++ b/.changeset/clean-icons-complain.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-documentation': patch +'@swisspost/design-system-styles': patch +--- + +Improved accessibility of headings with subheadings by removing the
element and added the utility class d-block. Consult https://design-system.post.ch/?path=/docs/7ecd87f1-de96-4e39-a057-ba1798eb6959--docs for updated markup. diff --git a/packages/documentation/src/stories/components/heading/heading.stories.ts b/packages/documentation/src/stories/components/heading/heading.stories.ts index a81568333e..1b992dad5d 100644 --- a/packages/documentation/src/stories/components/heading/heading.stories.ts +++ b/packages/documentation/src/stories/components/heading/heading.stories.ts @@ -89,8 +89,7 @@ export const Default: Story = { const tagName = unsafeStatic(args.level); const content = args.showSubtitle ? html` - ${args.title} -
+ ${args.title} ${args.subtitle} ` : args.title;