Skip to content

<Link> component not usable with <post-logo> #4842

Open
@gfellerph

Description

@gfellerph

Feedback from the portal team was that a logo click triggers a full page reload. This is not necessary when client side navigation is in place. The <post-logo> component renders a link in shadow DOM. If client side navigation is to be used, clicks have to be prevented and a manual router push has to be implemented on project side.

Is there a way to give projects control over the link element?

Possible solution: not include the link in the component and require projects to wrap the logo themselves (making the logo no longer a direct slot of the header which might cause issues):

<post-header>
  <Link ...>
    <post-logo></post-logo>
  </Link>
</post-header>

Metadata

Metadata

Assignees

Labels

requestThis is a request from a contributor outside of the core team.⏲ timeboxed: 4 hoursSpend 4 hours on this task. If you're not able to complete it, it's not worth pursuing further.📦 componentsRelated to the @swisspost/design-system-components package🧷 has workaround

Type

No type

Projects

Status

🧐 In Review

Relationships

None yet

Development

No branches or pull requests

Issue actions