Skip to content

Conversation

@gfellerph
Copy link
Member

Added the possibility to use paragraphs instead of headings for the post-header component. This enables project to fully control the heading structure of the document.

Added the possibility to use paragraphs instead of headings for the post-header component. This enables project to fully control the heading structure of the document.
@gfellerph gfellerph requested review from a team as code owners July 28, 2025 15:25
@gfellerph gfellerph requested a review from leagrdv July 28, 2025 15:25
@gfellerph gfellerph linked an issue Jul 28, 2025 that may be closed by this pull request
2 tasks
@changeset-bot
Copy link

changeset-bot bot commented Jul 28, 2025

🦋 Changeset detected

Latest commit: b8309b3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@swisspost/design-system-components Minor
@swisspost/design-system-documentation Minor
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components-react Minor
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-components-angular Minor
@swisspost/design-system-styles Minor
@swisspost/design-system-tokens Minor
@swisspost/design-system-icons Minor
@swisspost/design-system-styles-primeng Minor
@swisspost/internet-header Minor
@swisspost/design-system-styles-primeng-workspace Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sonarqubecloud
Copy link

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Jul 28, 2025

Related Previews

<p slot="megadropdown-title" class="h2">Briefe title</p>
<post-list>
<h3>Briefe senden</h3>
<p class="h3">Briefe senden</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it's a bit dangerous to let people put whichever class they want here. In our CSS for instance, we set .megadropdown h2, .megadropdown > h2 to display: none and letting users choose which title size they want might result in a hidden title. Also, it opens the possibility for users to derive from the intended design.

What do you think? Should we skip those classes and target the "fake" headings another way in CSS?

table: {
category: 'Content',
},
defaultValue: { summary: true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value is not shown in the arguments table, also is there really a default value here?

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove h-tags from post-header

4 participants