Releases: sbb-design-systems/lyne-components
Releases · sbb-design-systems/lyne-components
v0.48.2
v0.48.1
v0.48.0
0.48.0 (2024-03-12)
⚠ BREAKING CHANGES
- sbb-navigation: The
active
property of<sbb-navigation-button>
/<sbb-navigation-link>
(former<sbb-navigation-action>
) has been removed. Add the CSS classsbb-active
to the corresponding button/link, to mark it as active. Additionally, wheneversbb-active
class is set in navigation, the corresponding navigation section, if one is connected, automatically opens. - The action element refactoring brings a couple of breaking changes:
- The following components have been split into two components. One with pure button and one with pure link behavior:
sbb-card-action
: split insbb-card-button
andsbb-card-link
sbb-header-action
: split insbb-header-button
andsbb-header-link
sbb-menu-action
: split insbb-menu-button
andsbb-menu-link
sbb-navigation-action
: split insbb-navigation-button
andsbb-navigation-link
- The
isStatic
flag has been removed from buttons and links; since the static case was automatically detected when action elements were nested in other action elements, now you need to check for usage of nested buttons/links in other action elements and possibly fix them using the new static variants. sbb-button
: thevariant
property has been removed and for each value, a new component has been created (e.g.sbb-button
,sbb-secondary-button
,sbb-tertiary-button
,sbb-transparent-button
); each of them has been further divided considering the behavior:- If the component was used as a button (no
href
set), replace it with<sbb{-variant}-button>
- If the component was used as a link (
href
set), replace it with<sbb{-variant}-button-link>
- If the component was nested into another action element (
isStatic
set), replace it with<sbb{-variant}-button-static>
- If the component was used as a button (no
- The usage of an icon-only
sbb-button
in asbb-form-field
is not supported anymore; a new component namedsbb-mini-button
has been created to handle this specific case - Check and replace any
sbb-button
insbb-toast
with the newsbb-transparent-button
/sbb-transparent-button-link
, since the variant is not automatically set anymore sbb-link
has been split into nine components, based on type and variant:- If
sbb-link
had an[href="..."]
, it migrates to<sbb{-variant}-link>
:<sbb-link href="...">
should be replaced with<sbb-block-link href="...">
<sbb-link href="..." variant="block">
should be replaced with<sbb-block-link href="...">
<sbb-link href="..." variant="inline" >
should be replaced with<sbb-link href="...">
- If
sbb-link
did not have an[href="..."]
, it migrates to<sbb{-variant}-link-button>
<sbb-link>
should be replaced with<sbb-block-link-button>
<sbb-link variant="block">
should be replaced with<sbb-block-link-button>
<sbb-link variant="inline">
should be replaced with<sbb-link-button>
- If
sbb-link
had an[is-static]
, it migrates to<sbb{-variant}-link-static>
<sbb-link is-static>
should be replaced with<sbb-block-link-static>
<sbb-link is-static variant="block">
should be replaced with<sbb-block-link-static>
<sbb-link is-static variant="inline">
should be replaced with<sbb-link-static>
- If
sbb-action-group
now only acceptssbb-block-link | sbb-block-link-button
besides any<sbb-button>
variantsbb-link-list
now only acceptssbb-block-link | sbb-block-link-button
sbb-skiplink-list
now only acceptssbb-block-link | sbb-block-link-button
sbb-toast
now only acceptssbb-link | sbb-link-button | sbb-transparent-button | sbb-transparent-button-link
- SASS mixin renamings:
link-variables
SASS mixin renamed toblock-link-variables
,link-variables--negative
SASS mixin renamed toblock-link-variables--negative
,link-variables--inline
SASS mixin renamed tolink-variables
,link-variables--inline-negative
SASS mixin renamed tolink-variables--negative
link-inline-consolidation
SASS mixin renamed tolink-consolidation
,link-inline
SASS mixin renamed tolink
,link-inline-negative
SASS mixin renamed tolink-negative
- The following components have been split into two components. One with pure button and one with pure link behavior:
- color: Removed 'default' suffix from color tokens (e.g.
--sbb-color-iron-default
=>--sbb-color-iron
andSbbColorIronDefault
=>SbbColorIron
). - multiple: rename type
TitleLevel
toSbbTitleLevel
Features
- button variant refactoring (98ea7f5)
- implement initial support for SSR (#2437) (39d37ca)
- increase
--sbb-font-size-title-5
for zero to small breakpoints (#2448) (15b786a) - sbb-card: introduce new color for active state (#2462) (6553d6b)
- sbb-checkbox, sbb-toggle-check: introduce native form support (#2456) (c9549a1)
- sbb-navigation: remove navigation section divider (#2473) (71c1412)
- sbb-selection-panel: increase border width for active state (#2463) (4c4bf5c), closes #2461
- sbb-sticky-bar: allow overlapping to the following content (#2459) (9518dfd)
- sbb-teaser-paid: first implementation (#2434) (68f807a)
Bug Fixes
- fix imports of common styles (#2475) (fda1960)
- layout: apply max-width only for ultra screen size (#2458) (cce71b2)
- sbb-navigation: fix active and focus handling (#2471) (ea81790)
- sbb-radio-group, sbb-tab-group: avoid incorrect setup if component is invisible during init (#2446) (1586137)
- sbb-selection-panel: fix transition of border-width (#2468) (8300b7f)
- sbb-selection-panel: fix transition of border-width [second attempt] (#2469) (942bf45)
- sbb-status: fix text styling (#2457) (292d316)
- sbb-teaser: prevent overlapping chip if including long content (#2450) (b78b3ce)
Documentation
Styles
- color: remove 'default' suffix from color tokens (77454de)
Code Refactoring
- sbb-navigation: improve active handling and focus (4f8f309)
v0.47.2
v0.47.1
v0.47.0
0.47.0 (2024-02-14)
⚠ BREAKING CHANGES
- sbb-image: property
noBorderRadius
has been replaced byborderRadius
which can receive 'default', 'none' and 'round'.
Features
- sbb-image: introduce support for round variant (#2401) (971bd5c)
- sbb-status: allow custom icons (#2403) (56b4068), closes #2398
Bug Fixes
v0.46.3
v0.46.2
v0.46.1
v0.46.0
0.46.0 (2024-02-12)
⚠ BREAKING CHANGES
- sbb-popover: Component
sbb-tooltip
has been renamed tosbb-popover
. Componentsbb-tooltip-trigger
has been renamed tosbb-popover-trigger
Attributesbb-tooltip-close
has been renamed tosbb-popover-close
. Every CSS tooltip variable has been renamed from--sbb-tooltip-*
to--sbb-popover-*
(including trigger).