- Updated the
post-togglebutton
component to offer greater flexibility. You can now control the visibility of elements within thepost-togglebutton
using thedata-showwhen="toggled"
anddata-showwhen="untoggled"
attributes. Any content without adata-showwhen
attribute will always be visible, regardless of the toggle state. (by @alizedebray with #4223)
-
Added composable footer component. (by @oliverschuerch with #4190)
-
Added the
post-megadropdown
component. (by @leagrdv with #4177) -
Added the parts
button
andbody
in thepost-accordion-item
component, so one can override styles from the outside. (by @oliverschuerch with #4190) -
Added the
post-breadcrumb
component to provide a standalone breadcrumb navigation solution. (by @alionazherdetska with #4065) -
Added the css parts
button
andbody
in thepost-accorddion-item
component. (by @oliverschuerch with #4190) -
Added the
post-language-switch
component that enables users to change the language of a page. (by @leagrdv with #4044)
-
Switched mega dropdown content to one column on mobile. (by @leagrdv with #4300)
-
Fixed opening state of megadropdown trigger and expanded detection. (by @leagrdv with #4299)
-
Fix tab isolation in nested
post-tabs
components by scoping tab queries and interactions to the current instance. (by @alionazherdetska with #4211) -
Added a fixed slot
post-list-item
on thepost-list-item
host element, so it is no longer necessary to add it manually. (by @oliverschuerch with #4190) -
Fixed the used
headingLevel
in thepost-accorddion-item
component. The component now uses the value from its closestpost-accorddion
parent component, if this is specified and falls back toh2
if not specified. (by @oliverschuerch with #4190) -
Updated the
post-togglebutton
to function like a real button, including support for keyboard navigation and proper focus styles. (by @alizedebray with #4242) -
Fixed an issue with the post-list component where the
horizontal
property could not be set programmatically. Also, reduced the specificity of the component's styles to make customization easier. (by @alizedebray with #4137) -
Updated dependencies:
- @swisspost/[email protected]
- @swisspost/[email protected]
-
Ιmplemented the back-to-top button component. (by @myrta2302 with #3991)
-
Added the capability to use a slotted img as a logo inside ´accordion-items´. (by @leagrdv with #4166)
- Updated dependencies:
- @swisspost/[email protected]
- @swisspost/[email protected]
-
Added the
post-togglebutton
component. (by @veyaromain with #3889) -
Refactored
post-icon
component to use the<use>
tag to load and show icons under the hood. This enables responsive icons, enables better caching and improves render performance slightly. There is no further action required. (by @oliverschuerch with #3969)
-
Fixed bug that showed delayed tooltip even after blur event. (by @leagrdv with #4053)
-
Made
post-icon
component use base tag href to define location of icons folder. (by @leagrdv with #4069) -
Updated dependencies:
- @swisspost/[email protected]
-
Renamed the alert component to banner and updated the styles of banner and toast components. The class
.alert
is still supported for now but is deprecated and will be removed in v10. Changed web component<post-alert>
to<post-banner>
. Additionally, the classes.{toast|alert}-primary
,.{toast|alert}-gray
and.toast-notification
have been deprecated. (by @leagrdv with #3862) -
Removed the
alert-fixed-bottom
variant of the alert. (by @leagrdv with #3862)
- Updated dependencies:
- @swisspost/[email protected]
-
Added a provisional post-header component with some basic functionality in place. This component is not finished in this state. (by @gfellerph with #3837)
-
Added new Menu Button components (post-menu-button, post-menu-trigger, and post-menu-item) for creating accessible dropdown menus. (by @alionazherdetska with #3795)
- Updated dependencies:
- @swisspost/[email protected]
- Removed the
.breadcrumb-item
class, which previously handled styling for breadcrumb items. Introduced a newpost-breadcrumb-item
that should be used in place of the.breadcrumb-item
class. (by @alionazherdetska with #3659)
-
Created the
post-list
andpost-list-item
components. (by @myrta2302 with #3812)
- Fixed an issue with the post-collapsible throwing an invalid selector error. (by @alizedebray with #3726)
- Updated dependencies:
- @swisspost/[email protected]
- Switched stencil hydrated flag from class (
hydrated
) to attribute (data-hydrated
). This flag indicates when a component finished rendering on the page. If your tests relied on the class being present, please rewrite the selector to use the new attribute selector. (by @oliverschuerch with #3783)
-
Added the post-language-option component, a header component made to enable users to select their preferred language. (by @alizedebray with #3802)
-
Added component
post-avatar
to show an avatar, based on different possible input data (gravatar by email, initials by first- and/or lastname, fallback). (by @oliverschuerch with #3352)
-
Made the ´´ visually hidden for tooltips to fix accessability issue. (by @schaertim with #3619)
-
Fixed the
post-card-control
label read twice by screen readers. (by @myrta2302 with #3625) -
Fixed an issue with property validation where some checks were run before the framework had the chance to add computed properties (for example Angular bindings like
[for]="$id"
). The checks are now delayed to work around this issue. (by @gfellerph with #3775) -
Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Made the heading-level property required for the accordion and removed it from the accordion-item docs. (by @schaertim with #3383)
-
Fixed a bug in nested accordions where closing a child item unintentionally closed all parent accordion elements. (by @schaertim with #3427)
-
Fixed an issue related to conflicting pointer and focus events hiding the tooltip unexpectedly in some situations. The tooltip now behaves as expected in this situation. (by @alionazherdetska with #3592)
-
Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Added the post-logo component, which enables displaying the Post's logo either as a clickable link or as a simple image. (by @oliverschuerch with #3477)
-
Fixed the
post-card-control
component to use the correct color scheme when placed on nested colored backgrounds. (by @oliverschuerch with #3477) -
Simplified individual web component imports. (by @oliverschuerch with #3477)
-
Fixed the post-tabs component throwing an error when imported individually. (by @oliverschuerch with #3477)
-
Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Added the slot="tabs" attribute on the post-tab-header per default. (by @davidritter-dotcom with #3282)
- Fixed a bug with the post-collapsible-trigger imports (by @oliverschuerch with #3302)
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
-
Added an invalid message for the card-control component and an icon in the invalid message of the checkbox and radio button (by @davidritter-dotcom with #2978)
-
Added a
delayed
property to thepost-tooltip
component to allow delaying its display for a few milliseconds after it is triggered. (by @alizedebray with #3245) -
Added a
post-collapsible-trigger
component to properly handle the role, ARIA attributes, and event listeners for elements that toggle apost-collapsible
. (by @alizedebray with #3209)
-
Fixed an issue with popovers on Firefox ESR that unexpectedly closed popovers when clicking on content. (by @gfellerph with #3211)
-
Prevent the
post-tabs
component from triggering apost Change
event before it is loaded. (by @alizedebray with #3247) -
Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Fixed a warning on the tooltip when the id was bound using Angular, the ID check now runs at a later stage in the component lifecycle, giving Angular enough time to set the attribute. (by @gfellerph with #3155)
- Updated dependencies:
- @swisspost/[email protected]
- Added a
heading-level
property on thepost-accordion
component to set the heading level of allpost-accordion-item
children at once. (by @alizedebray with #3104)
-
Fixed grid-area behaviour in card-control component, if used without any icon. (by @oliverschuerch with #3099)
-
Merged the card-control, checkbox-card and radio button card docs pages and updated the choice-card-control styles. (by @alizedebray with #3104)
-
Fixed high-contrast-mode for card-control component. (by @alizedebray with #3104)
-
Fixed the
post-accordion-item
chevron no longer rotating. (by @alizedebray with #3104) -
Updated dependencies:
- @swisspost/[email protected]
-
Synchronized the versions of the following packages:
- @swisspost/design-system-styles
- @swisspost/design-system-components
- @swisspost/design-system-components-react
- @swisspost/design-system-components-angular
- @swisspost/design-system-migrations
- @swisspost/design-system-icons
- @swisspost/design-system-intranet-header
This will help understanding the dependencies between these packages at a glance but also means that for the individual pacakges, semver is no longer being used. This enables us also to talk about and document Design System versions as a whole instead of documenting the fragmented versions in a complex lookup table. (by @gfellerph with #2856)
-
Updated the package entry properties in the package.json to the by stencil recommended files:
- Updated the
main
property fromloader/index.cjs.js
todist/index.cjs.js
- Updated the
module
property fromloader/index.js
todist/loader.js
- Updated the
types
property fromloader/index.d.ts
todist/types/index.d.ts
- Removed the
es2017
property
The usage of the
@swisspost/design-system-components/loader
entry files are still available and should be used to get the lazy-loaded components. (by @oliverschuerch with #2886) - Updated the
-
Prefixed all web-component custom-events with the keyword
post
.- Changed
post-alert
componentdismissed
event topostDismissed
. - Changed
post-card-control
componentinput
andchange
events topostInput
andpostChange
. - Changed
post-collapsible
componentcollapseChange
event topostToggle
. - Changed
post-rating
componentinput
andchange
events topostInput
andpostChange
. - Changed
post-tabs
componenttabChange
event topostChange
. (by @oliverschuerch with #2874)
- Changed
-
Added a new
tag
component. This component is available in standard HTML or as webcomponent. (by @b1aserlu with #2552) -
Added a new web-component
post-card-control
, which works like a nativeinput[type="checkbox"]
orinput[type="radio"]
but with a custom visual design. (by @oliverschuerch with #2260) -
Added the new default slot, to allow the integration of custom HTML in the card-control component. (by @oliverschuerch with #2844)
-
Fixed accessibility of aria controls through post-tabs components. (by @imagoiq with #2777)
-
Fixed post-tooltip that doesn't show up when the pointer is on a child element (like an icon). (by @imagoiq with #2814)
-
Fixed Collapsible and Accordion element's content which is displayed when hidden on Webkit/Safari. (by @imagoiq with #2963)
-
Added new black and white alpha colors. Replaced hardcoded alpha colors with the new color definitions in
card-control
component. (by @oliverschuerch with #2861) -
Updated Sass color variables: - Removed variables
$success-green
,$error-red
,$warning-orange
,$success-text
,$error-text
,$danger
as well as the Sass map$contextual-colors
. Instead use the variables$success
,$error
,$warning
and the Sass map$signal-colors
.- Updated the Sass map
$signal-colors
keys and added a new Sass map$signal-background-colors
. - Updated the Sass map
$background-colors
and all the dependant packages accordingly.
With the exception of the components
notification
,toast
andtag
, there is no component providing adanger
variant anymore. Instead use theerror
variant. (by @oliverschuerch with #2861) - Updated the Sass map
-
Updated dependencies:
- @swisspost/[email protected]
- Added a new rating web-component. (by @davidritter-dotcom with #2411)
- Updated dependencies:
- @swisspost/[email protected]
-
Improved display of tooltip arrow in high contrast mode. (by @imagoiq with #2697)
-
Fixes an issue with the post-popover component that stopped working once trigger buttons were removed from the page or new trigger buttons were added to the page asynchronously. (by @gfellerph with #2695)
-
Updated dependencies:
- @swisspost/[email protected]
-
Fixed double lines between accordion items on chrome/safari. (by @imagoiq with #2615)
-
Fixed two issues with tooltips and Angular integration. Tooltips are now being displayed on buttons that are added to the DOM asynchronously and tooltip elements are no longer duplicated on route change. (by @gfellerph with #2621)
-
Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
-
Restricted
post-collapsible
to collapse behaviour only. The component remains unchanged when used with external controls, however, it no longer has aheader
slot.Before:
<post-collapsible collapsed="" headingLevel="6"> <span slot="header">Titulum</span> <p>Contentus momentus vero siteos et accusam iretea et justo.</p> </post-collapsible>
After:
<post-accordion-item collapsed="" headingLevel="6"> <span slot="header">Titulum</span> <p>Contentus momentus vero siteos et accusam iretea et justo.</p> </post-accordion-item>
To get the same look and feel as in the previous version, use the
post-accordion-item
component instead. (by @alizedebray with #2379)
- Updated the tooltip
min-height
andmax-width
and added a new property arrow to the tooltip, that defines wheter or not the pointer arrow is displayed. (by @b1aserlu with #2394)
-
Update the background color of accordion to be white on any background color other than white. The accordion background remains gray on white backgrounds. (by @alizedebray with #2379)
-
Added a payload to the
collapseChange
event of thepost-collapsible
component. This payload is a boolean:true
if the collapsible was opened,false
if it was closed. (by @alizedebray with #2379) -
Updated dependencies:
- @swisspost/[email protected]
- Enabled import injection for components. This fixes an issue with importing dynamically loaded web components with the vite compiler for storybook. (by @gfellerph with #2448)
- Added the
post-popover
component. This component can display text and interactive elements in a popover in front of the page content. (by @gfellerph with #2109)
- Updated dependencies:
- @swisspost/[email protected]
- Defined @stencil/core and @stencil/store as a devDependency to avoid compatibilities issues. (by @imagoiq with #2313)
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Reverted #2152 because of an issue with importing the internet headers
defineCustomElements
. (by @gfellerph with #2208) - Updated dependencies:
- @swisspost/[email protected]
-
Added component exports to the src/index.ts files, to include them in the dist/index.js and dist/index.esm.js output files and therefore fix our stencil setup. (by @oliverschuerch with
f74c9662
) -
Added a
post-collapsible
event emitted when the collapse element is shown or hidden. (by @alizedebray with #2079) -
Added the
post-accordion
component. (by @alizedebray with #2079)
- Upgraded builder Stenciljs from version 3 to 4. No user visible changes are expected. (by @imagoiq with #2116)
- Updated dependencies:
- @swisspost/[email protected]
-
Fixed misplaced custom icons in “post-alert” elements with actions. (by @alizedebray with #2094)
-
Updated the keyboard navigation on the
post-tabs
component. (by @alizedebray with #2093) -
Fixed tabs count announcement with VoiceOver. (by @imagoiq with #2047)
-
Updated dependencies:
- @swisspost/[email protected]
-
Added the
post-tooltip
component. (by @gfellerph with #1879) -
Created the web component variant for the alert component. (by @alizedebray with #1085)
- Updated dependencies:
- @swisspost/[email protected]
- Added a new post-tabs component. (by @alizedebray with #1181)
- Updated dependencies:
- @swisspost/[email protected]
- Fixed collapsible/accordion styles that broke after Bootstrap removed several CSS custom properties. (by @alizedebray with #1324)
- Updated dependencies:
- @swisspost/[email protected]
- Fixed broken and outdated output structure of stencil build. (by @oliverschuerch with #1611)
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
-
Fixed broken links to the storybook documentation. (by @alizedebray with #1514)
-
Reintegrated mistakenly removed inline-styles into the
post-icon
component. Animations and scale modifiers now work as expected again. (by @oliverschuerch with #1531) -
Implemented a workaround for the crossorigin problem in the
post-icon
component. Icons can now be loaded from cross-origin if the correctimg-src
is set in your CORS policy. (by @oliverschuerch with #1531) -
Updated dependencies:
- @swisspost/[email protected]
- Refactored the
post-icon
icon loading mechanism. The same icon will no longer be loaded multiple times. (by @oliverschuerch with #1485) - Updated dependencies:
- @swisspost/[email protected]
- Updated the flip-v/flip-h properties of the
<post-icon>
component to corectly work with boolean inputs. (by @oliverschuerch with #1312)
-
Fixed package dependencies. Moved dependencies that are not being used in production to devDependencies in order to simplify and speed up the package install process. (by @gfellerph with #1289)
-
Fixed the
post-icon
component to ensure that the icon is properly updated every time the value of the "name" property changes at runtime. (by @oliverschuerch with #1310)
- Updated dependencies:
- @swisspost/[email protected]
- Reverted the update to Bootstrap 5.2 and Angular 15. This update should have been a major release and will be re-released as such as soon as possible. (by @gfellerph with #1207)
- Updated dependencies:
- @swisspost/[email protected]
- Major dependency update. The following versions are now supported:
- Angular 15
- Bootstrap 5.2.3
- ng-bootstrap 14 (by @oliverschuerch with #1146)
- Updated dependencies:
- @swisspost/[email protected]
- Added an icon component that works together with @swisspost/design-system-icons for rendering any Post icon as an SVG. (by @gfellerph with #933)
- Updated dependencies:
- @swisspost/[email protected]
- Created a collapsible component. (by @alizedebray with #683)
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]
- Updated dependencies:
- @swisspost/[email protected]