Skip to content

Commit

Permalink
Merge branch 'main' into 4293-hcm-apply-missing-selecteditem-backgrou…
Browse files Browse the repository at this point in the history
…nd-color-and-selecteditemtext-text-color-for-checkbox-and-radio-button-in-selected-state
  • Loading branch information
schaertim authored Dec 19, 2024
2 parents e093280 + 9f1e888 commit 25b3d12
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-maps-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-documentation': patch
---

Updated header documentation by specifying `post-logo` slot explicitly.
5 changes: 5 additions & 0 deletions .changeset/early-baboons-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': patch
---

Added a `type="button"` attribute to the `post-close-button` to prevent it from submitting forms.
5 changes: 5 additions & 0 deletions .changeset/nice-beans-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': patch
---

Removed auto slotting from `post-logo` component to enable more flexible usage.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class PostClosebutton {
render() {
return (
<Host data-version={version}>
<button class="btn btn-icon-close">
<button class="btn btn-icon-close" type="button">
<post-icon aria-hidden="true" name="closex"></post-icon>
<span class="visually-hidden">
<slot></slot>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/post-logo/post-logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class PostLogo {
const LogoTag = logoLink ? 'a' : 'span';

return (
<Host data-version={version} slot="post-logo">
<Host data-version={version}>
<LogoTag class="logo" {...(logoLink ? { href: logoLink } : {})}>
<span class="description">
<slot onSlotchange={() => this.checkDescription()}></slot>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<body style="min-height: 200vh">
<post-header>
<!-- Logo -->
<post-logo>Homepage</post-logo>
<post-logo slot="post-logo">Homepage</post-logo>

<!-- Meta navigation -->
<ul class="list-inline" slot="meta-navigation">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html } from 'lit-html';

export default html`<post-header>
<!-- Logo -->
<post-logo url="/">Homepage</post-logo>
<post-logo slot="post-logo" url="/">Homepage</post-logo>
<!-- Meta navigation -->
<ul class="list-inline" slot="meta-navigation">
Expand Down

0 comments on commit 25b3d12

Please sign in to comment.