Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:
This is a pre-release version and is not production ready. For new and ongoing projects, please refer to the latest Design System version.
A set of standard Web Components for easy integration with every framework or no framework at all.
Depending on your project setup, there are different ways available to integrate our components.
npm install @swisspost/design-system-components
Import the packages global styles. They are required for the components to work properly.
@use '@swisspost/design-system-components/dist/post-components.css';
Import all or only specific components into your entry file (e.g. main.js
, app.js
, ...).
import { defineCustomElements as definePostComponents } from '@swisspost/design-system-components/loader'; definePostComponents();
import { defineCustomElementPostIcon } from '@swisspost/design-system-components/loaders'; defineCustomElementPostIcon();
Use the imported components in your html:
<post-icon name="1000"></post-icon>
If you are not using any bundler or don't want to install from npm, you can load our components from a CDN. (More on CDNs)
Make sure to replace {version}
with the version you want to use or remove @{version}
to use the latest version.
Available CDNs:
{cdnURL}
with https://cdn.jsdelivr.net/npm/@swisspost/design-system-components.{cdnURL}
with https://unpkg.com/@swisspost/design-system-components.Load all components at once
<html> <head> <script type="module"> import { defineCustomElements as definePostComponents } from '{cdnUrl}@{version}/loader/index.js'; definePostComponents(); </script> </head> <body> <post-icon name="1001"></post-icon> </body> </html>
Load specific components only
<html> <head> <script type="module"> import { defineCustomElementPostIcon } from '{cdnUrl}@{version}/loaders'; defineCustomElementPostIcon(); </script> </head> <body> <post-icon name="1001"></post-icon> </body> </html>
<html> <head> <script src="{cdnUrl}@{version}/dist/index.js"></script> </head> <body> <post-icon name="1001"></post-icon> </body> </html>
Improved post-header
component responsive behavior for better mobile and desktop experience. Removed postUpdateDevice
event as part of internal refactoring - if you were listening to this event in your application, you'll need to remove those event listeners. Fixed a bug causing the post-mainnavigation
to misplace after resizing from tablet to desktop and then back to tablet. (by @alionazherdetska with #5490)
Updated the following props to be required
:
post-breadcrumbs
: homeUrl
is now required.post-collabpsible-trigger
: for
is now required.post-language-switch
: caption
and description
are now required.post-tab-header
: panel
is now required.post-tab-panel
: name
is now required. (by @myrta2302 with #5469)Added the styles responsible for preventing fouc (flashes of unstyled content) for web-, angular- and react-components in the respective component packages:
@swisspost/design-system-components/post-components/post-components.css
@swisspost/design-system-components-angular/post-components.css
@swisspost/design-system-components-react/post-components.css
(by @oliverschuerch with #5165)Fixed visual gap in the post-header
component on iOS in Chrome browser. (by @alionazherdetska with #5621)
Fixed post-tooltip
text overflow by implementing proper word wrapping and updating width constraints. Tooltips now break correctly within a maximum width of 280px, preventing text from bleeding outside container boundaries. (by @alionazherdetska with #5544)
Updated validation error messages across the component library. (by @myrta2302 with #5471)
Set <post-tooltip>
to display: contents
to avoid affecting document layout. (by @myrta2302 with #5574)
Replaced thrown errors with console.errors for all property checker functions. (by @myrta2302 with #5471)
Updated the following props to be optional
:
post-banner
: dismissLabel
, icon
post-card-control
: description
post-language-option
: active
, name
, url
, variant
post-logo
: url
post-tabs
: activePanel
post-tag
: variant
Updated prop type:
post-card-control
: validity
type changed to boolean. (by @myrta2302 with #5469)Updated dependencies:
Prefixed all CSS custom variables with post
:
--global-header-top
is now --post-global-header-top
--local-header-top
is now --post-local-header-top
--logo-height
is now --post-logo-height
--global-controls-top
is now --post-global-controls-top
--header-navigation-current-inset
is now --post-header-navigation-current-inset
--header-scroll-parent-height
is now --post-header-scroll-parent-height
--safe-space-*
in the post-popovercontainer
component are now starting with --post-safe-space-*
(by @leagrdv with #5354)Removed the rotation of the back button in the post-header
, which means users need to change the back button's icon arrowright
to arrowleft
to make sure it's pointing in the right direction. (by @leagrdv with #5466)
The default value of the arrow property for the <post-tooltip> element has been changed to false
. This means, that tooltips do not display arrows by default anymore. (by @alionazherdetska with #4477)
The <post-tooltip-trigger> element has been introduced as the new way to trigger tooltips. Instead of using an attribute to associate a trigger with a <post-tooltip>, you now wrap the element in <post-tooltip-trigger>. (by @alionazherdetska with #4477)
<post-breadcrumb>
component to <post-breadcrumbs>
to better reflect its role as a container for multiple breadcrumb items. (by @alionazherdetska with #5291)Added a new utility, to distinguish between server and client environment. (by @oliverschuerch with #5160)
Adjusted the collapse animation to be compatible with server-side rendering (SSR). (by @oliverschuerch with #5182)
Enabled server-side rendering for the post-popover
and the post-tooltip
components, ensuring no hydration errors occur on the client side. (by @oliverschuerch with #5166)
Made post-linkarea
a shadow component to avoid hydration errors when used in a server-side rendered environment. (by @oliverschuerch with #5156)
Made post-close-button
a shadow component. (by @oliverschuerch with #5151)
Made post-collapsible-trigger
a shadow component to avoid hydration errors when used in a server-side rendered environment. (by @oliverschuerch with #5168)
Enabled server-side rendering for the post-icon
component, ensuring no hydration errors occur on the client side. (by @oliverschuerch with #5170)
Made utilities SSR conform. (by @oliverschuerch with #5166)
Resolved an issue with the post-footer
component to ensure event bindings are correctly removed when the component is detached. (by @oliverschuerch with #5173)
Enhanced the for
property of the post-menu-trigger
component to ensure it stays synchronized in the DOM whenever it changes, enabling compatibility with querySelector
and similar methods. (by @oliverschuerch with #5157)
Fixed update flow for post-collapsible
and post-collapsible-trigger
aria attributes. (by @oliverschuerch with #5168)
Fixed post-header
component version
attribute. (by @oliverschuerch with #5152)
Enhanced the label
property of the post-card-control
component to ensure it stays synchronized in the DOM whenever it changes, enabling compatibility with querySelector
and similar methods. (by @oliverschuerch with #5150)
Enabled server-side rendering for the post-popovercontainer
component, ensuring no hydration errors occur on the client side. (by @oliverschuerch with #5161)
Refactored the post-language-switch
component to remove redundant update functions and unnecessary slot event handling. (by @oliverschuerch with #5184)
Updated post-header
by moving handleScrollEvent
from connectedCallback
to componentWillRender
. Added fallback value to the --post-header-scroll-top
property within the --logo-height
calculation. (by @myrta2302 with #5268)
Enhanced the label
property of the post-back-to-top
component to ensure it stays synchronized in the DOM whenever it changes, enabling compatibility with querySelector
and similar methods. (by @oliverschuerch with #5149)
Enhanced the panel
property of the post-tab-header
component and the name
property of the post-tab-panel
component, to ensure they stay synchronized in the DOM whenever they change, enabling compatibility with querySelector
and similar methods. (by @oliverschuerch with #5158)
Added the reflect: true
option to the post-avatar
component property firstname
to prepare the component for the next stencil update. (by @oliverschuerch with #5148)
post-mainnavigation
component to handle overflow using native scroll. (by @alizedebray with #4948)Updated the fallback CDN URL in the post-icon
component to include the current package version, ensuring icon requests match the used component version. (by @alionazherdetska with #5091)
Adjusted the placement of the Back-to-top button to accommodate the sticky header. (by @myrta2302 with #4879)
<post-header>
to expose header height custom CSS properties to :root
and set scroll-padding-top
to visible header height. (by @myrta2302 with #4925)transform
property from the scroll-locked post-header
parent, to avoid side effects. Updated the mobile menu of the post-header
, so it works as before. (by @oliverschuerch with #4957)Added a max-height to the post-megadropdown
on desktop to add scrolling in case its content is bigger than the space available. (by @leagrdv with #4906)
Replaced usages of color: inherit
with tokens to improve high contrast mode compatability. (by @schaertim with #4933)
Adapted the trigger of the post-popover
component to be able to handle nested elements. (by @schaertim with #4910)
Improved header accessibility by ensuring that elements which are hidden on scroll get visible again if they receive focus. (by @leagrdv with #4767)
Added the CSS variable --post-popover-max-width
that enables configuring the max-width of the post-popover
component. (by @leagrdv with #4898)
post-language-switch
component by adding the role="menu" to the post-menu
component. (by @alionazherdetska with #4951)Fixed the gap that appeared between the header and the main navigation when scrolling up. (by @alizedebray with #4810)
Fixed text-alignment for post-language-switch
component to match the design. (by @alionazherdetska with #4759)
Updated the keydown event handling for post-megadropdown
component to move focus to the first dropdown element when activated via Space, ensuring consistency with the Enter key behavior. (by @alionazherdetska with #4799)
Fixed the mobile menu height in the post-header
component when the scrollable parent is not the document's body. (by @oliverschuerch with #4829)
Switched the outermost scrollable parent of the post-header
component from the html
to the body
element. (by @oliverschuerch with #4823)
Fixed the mobile menu behavior in the post-header
and post-megadropdown
components, so the second navigation level is always showing at the correct location in design, no matter if the user has scrolled on the first navigation level. (by @oliverschuerch with #4829)
Fixed the clipped focus ring on post-mainnavigation
items ensuring a fully visible and accessible focus state. (by @alionazherdetska with #4808)
Adjusted post-tooltip
and post-popover
positioning by adding a top margin to ensure they do not overlap the post-header
upon opening. (by @alionazherdetska with #4589)
Removed console.logs out of the post-header component. (by @oliverschuerch with #4817)
Fixed post-header component scrollParent getter function. (by @oliverschuerch with #4811)
Fixed calculation of post-mainnavigation
mobile placement and put back the header border on HCM. (by @leagrdv with #4806)
h1
on the post-header
to have consistent styles whether or not h1
is used. (by @leagrdv with #4782)Fixed wrong implementation of the relative scroll parent of the post-header
component.` (by @oliverschuerch with #4786)
Fixed wrong implemented and added missing eventListener removals in the post-header
component. (by @oliverschuerch with #4786)
--local-header-height
, so it's defined from the very beginning. (by @oliverschuerch with #4786)Updated the icon sizes in the post-header
and the post-language-switch
components, to match the design specs. (by @oliverschuerch with #4783)
Fixed the bug with shifting the post-language-switch
dropdown to the right on language selection. (by @alionazherdetska with #4751)
Fixed navigation scrolling in post-mainnavigation
to ensure scroll buttons persist until the last item is fully visible. (by @schaertim with #4777)
Prevented slide-down animation for already open post-megadropdown
component when resizing from mobile/tablet to desktop. (by @alionazherdetska with #4704)
Disabled body scrolling when mobile navigation is open. (by @myrta2302 with #4775)
Updated the post-megadropdown
to make the list links wrap to the next line when texts are too long. (by @leagrdv with #4778)
Adjusted the composable header height to match the design specifications. (by @alionazherdetska with #4650)
Implemented auto-closing behavior for post-megadropdown
and post-mainnavigation
when clicking a link inside them, to prevent navigation elements from remaining open after user interaction. (by @alionazherdetska with #4765)
Fixed an issue with the language switch active state not highlighting only the active language option. The selector now only targets active options. (by @gfellerph with #4776)
Fixed an issue with the main navigation where the scroll arrows were always displayed, even when there were no elements to scroll to. (by @alizedebray with #4766)
post-language-switch
and post-language-option
components. (by @alionazherdetska with #4665)Increased gap between header title and local controls in post-header
. (by @leagrdv with #4739)
Fixed misaligned second level navigation in the post-megadropdown
component on desktop. (by @alionazherdetska with #4757)
Fixed breakpoint utility, by normalizing the read custom-properties. (by @oliverschuerch with #4764)
Changed from vh
to dynamic viewport height (dvh
) unit on post-header to take into account the mobile devices height change. (by @leagrdv with #4747)
Aligned prop validation throughout the component library. (by @myrta2302 with #4638)
post-megadropdown
on desktop. (by @leagrdv with #4761)Changed list version of post-language-switch
to always keep the same order of post-language-options
. (by @schaertim with #4706)
Added optional safe triangle and trapezoid to post-popovercontainer
to improve accessability. (by @schaertim with #4436)
Enhanced the post-linkarea
component so that modifier keys (ctrl
, shift
, alt
, meta
) are passed along when clicking the component. (by @alizedebray with #4696)
Updated the post-icon
component to make it SSR conform. (by @oliverschuerch with #4697)
Improved keyboard navigation for the post-megadropdown
by focusing on the first element when it is opened with the Enter key and returning the focus to the trigger when it is closed. (by @schaertim with #4625)
Fixed the correct assignment of the expanded attribute in the post-menu
component, ensuring proper aria-expanded handling in components utilizing post-menu
, such as post-language-switch
and post-breadcrumb
. (by @alionazherdetska with #4661)
Tokenized the back to top button's shadow. (by @leagrdv with #4641)
Cleaned up possible side effects on post-header
by adding a disconnectedCallback()
function. (by @leagrdv with #4736)
Duplicated post-mainnavigation
links' content to avoid layout shift on active elements. (by @leagrdv with #4694)
Added documentation for the design-system-components-react
package. (by @leagrdv with #4669)
Fixed the post-language-switch
component to support any boolean notation for the active
attribute on post-language-option
. (by @alizedebray with #4701)
Fixed focus order on desktop for post-megadropdown
component. (by @alionazherdetska with #4379)
Added high contrast mode styles for header. (by @myrta2302 with #4262)
Fixed the animation glitch when switching between megadropdowns. (by @leagrdv with #4723)
Fixed the post-header
component to correctly set the --local-header-height
property. (by @alizedebray with #4746)
Switched from thrown error to logged errors when post-list
title is missing. (by @leagrdv with #4725)
Fixed overflow handling in the main navigation to ensure all navigation items can be accessed. (by @alizedebray with #4666)
Added a line separator between the header and the page content. (by @leagrdv with #4637)
Removed the custom properties from the post-header
component styles and moved them to the styles package. This change allows these properties to be accessed before the component is loaded. (by @leagrdv with #4663)
Window
object. (by @alizedebray with #4696)post-language-switch
components in the post-header
component. Fixed language switch options being wrapped to multiple lines on mobile. (by @oliverschuerch with #4674)Updated the URL check on the post-logo component. It now also accepts relative URLs as valid props. (by @gfellerph with #4616)
Removed megadropdown animation when another one is already opened. (by @leagrdv with #4627)
Fixed post-logo
from disappearing on post-header
scroll. (by @alionazherdetska with #4606)
--main-header-height
custom property for post-header
component, which was previously undefined on initial load. (by @alionazherdetska with #4614)aria-role
which should be declared as role
on the <post-language-switch>
(by @gfellerph with #4598)Improved main navigation overflow display. (by @alizedebray with #4273)
Removed post-popovercontainer
from the post-megadropdown
component and added desktop animations with new slide-down and slide-up effects. (by @alionazherdetska with #4421)
Added the post-linkarea
component. (by @veyaromain with #4030)
Removed nav for post-header
component causing blank space on scroll for screens <1025px. (by @alionazherdetska with #4532)
Added z-index to the post-header
component to display it on top of other contents. (by @leagrdv with #4367)
Replaced previously deleted CSS variables with SASS variables. (by @leagrdv with #4446)
Added shadow to an optional tooltip arrow for post-popover
component. (by @alionazherdetska with #4441)
Fixed post-icon
calculated base href. (by @leagrdv with #4491)
Fixed display of post-megadropdown
in header. (by @leagrdv with #4350)
post-icon
component. (by @oliverschuerch with #4351)post-collapsible
host relative so every not static positioned element within uses it as its base render context and therefore gets clipped as it should. (by @oliverschuerch with #4478)Fixed a typo in the post-accordion-item
component. (by @schaertim with #4391)
post-logo
component, which contains a link, to improve accessibility. (by @alionazherdetska with #4462)Renamed the "dropdown" variant to "menu" for the post-language-switch
and post-language-option
components. (by @leagrdv with #4260)
Removed .bg-
classes to define background color of elements. (by @leagrdv with #4201)
Removed the dependency on utility classes in post-header
component. The header can now be used without importing CSS utility classes. (by @leagrdv with #4358)
Updated the documentation of the Post header. (by @leagrdv with #4408)
Added a type="button"
attribute to the post-close-button
to prevent it from submitting forms. (by @schaertim with #4332)
Removed auto slotting from post-togglebutton
component to enable more flexible usage. (by @schaertim with #4346)
Removed all usage of deprecated utility sizing classes. (by @leagrdv with #4343)
Reduced the length of random IDs generated in the components; they are now generated using the nanoid library instead of the Web Crypto API. (by @leagrdv with #4369)
Updated style and keyboard navigation of post-language-switch
. (by @leagrdv with #4260)
Removed auto slotting from post-logo
component to enable more flexible usage. (by @schaertim with #4345)
Modified header megadropdown to close when focus is moved outside. (by @myrta2302 with #4324)
Updated header overflow in tablet and mobile for long application titles. (by @leagrdv with #4364)
Added hover color to post-accordion
in high contrast mode. (by @schaertim with #4316)
post-togglebutton
component to offer greater flexibility. You can now control the visibility of elements within the post-togglebutton
using the data-showwhen="toggled"
and data-showwhen="untoggled"
attributes. Any content without a data-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
and body
in the post-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
and body
in the post-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 the post-list-item
host element, so it is no longer necessary to add it manually. (by @oliverschuerch with #4190)
Fixed the used headingLevel
in the post-accorddion-item
component. The component now uses the value from its closest post-accorddion
parent component, if this is specified and falls back to h2
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)
horizontal
property could not be set programmatically. Also, reduced the specificity of the component's styles to make customization easier. (by @alizedebray with #4137)Ι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)
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)
post-icon
component use base tag href to define location of icons folder. (by @leagrdv with #4069)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)
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)
.breadcrumb-item
class, which previously handled styling for breadcrumb items. Introduced a new post-breadcrumb-item
that should be used in place of the .breadcrumb-item
class. (by @alionazherdetska with #3659)Created the post-list
and post-list-item
components. (by @myrta2302 with #3812)
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 ´<post-popovercontainer>´ 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)
[for]="$id"
). The checks are now delayed to work around this issue. (by @gfellerph with #3775)Fixed a bug in nested accordions where closing a child item unintentionally closed all parent accordion elements. (by @schaertim with #3427)
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)
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 the post-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 a post-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)
post-tabs
component from triggering a post Change
event before it is loaded. (by @alizedebray with #3247)heading-level
property on the post-accordion
component to set the heading level of all post-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)
post-accordion-item
chevron no longer rotating. (by @alizedebray with #3104)Synchronized the versions of the following packages:
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:
main
property from loader/index.cjs.js
to dist/index.cjs.js
module
property from loader/index.js
to dist/loader.js
types
property from loader/index.d.ts
to dist/types/index.d.ts
es2017
propertyThe 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)
Prefixed all web-component custom-events with the keyword post
.
post-alert
component dismissed
event to postDismissed
.post-card-control
component input
and change
events to postInput
and postChange
.post-collapsible
component collapseChange
event to postToggle
.post-rating
component input
and change
events to postInput
and postChange
.post-tabs
component tabChange
event to postChange
. (by @oliverschuerch with #2874)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 native input[type="checkbox"]
or input[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
.
$signal-colors
keys and added a new Sass map $signal-background-colors
.$background-colors
and all the dependant packages accordingly.With the exception of the components notification
, toast
and tag
, there is no component providing a danger
variant anymore. Instead use the error
variant. (by @oliverschuerch with #2861)
Updated dependencies:
Improved display of tooltip arrow in high contrast mode. (by @imagoiq with #2697)
Fixed double lines between accordion items on chrome/safari. (by @imagoiq with #2615)
Restricted post-collapsible
to collapse behaviour only. The component remains unchanged when used with external controls, however, it no longer has a header
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)
min-height
and max-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)
collapseChange
event of the post-collapsible
component. This payload is a boolean: true
if the collapsible was opened, false
if it was closed. (by @alizedebray with #2379)post-popover
component. This component can display text and interactive elements in a popover in front of the page content. (by @gfellerph with #2109)defineCustomElements
. (by @gfellerph with #2208)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)
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)
Added the post-tooltip
component. (by @gfellerph with #1879)
Created the web component variant for the alert component. (by @alizedebray with #1085)
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)
post-icon
component. Icons can now be loaded from cross-origin if the correct img-src
is set in your CORS policy. (by @oliverschuerch with #1531)post-icon
icon loading mechanism. The same icon will no longer be loaded multiple times. (by @oliverschuerch with #1485)<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)