Releases: sbb-design-systems/lyne-components
Releases · sbb-design-systems/lyne-components
v0.51.1
v0.51.0
0.51.0 (2024-05-07)
⚠ BREAKING CHANGES
- As we split up the former
typography.css
into smaller consumable modules, we had to change the names of some files.- Renamed
typography.css
tostandard-theme.css
. Notice: there is still a file calledtypography.css
that contains only a few typography-related outputs. Therefore, import adaption fromtypography.css
tostandard-theme.css
is mandatory. - Changed the name of
fullfont.css
tofont-characters-extension.css
.
- Renamed
- Replaced
Roman
,Bold
, andLight
font-face variants with the singleSBB
font. Using CSSfont-weight
property automatically selects the correct font family. Migration guide:- Replace
font-family: "SBBWeb Roman", ...
withfont-family: "SBB", ...
and usefont-weight: normal
(potentially not necessary asnormal
is the default). - Replace
font-family: "SBBWeb Bold", ...
withfont-family: "SBB", ...
and usefont-weight: bold
or CSS classsbb-text--bold
. - Replace
font-family: "SBBWeb Light", ...
withfont-family: "SBB", ...
and usefont-weight: 300
. - Replace CSS variable
--sbb-typo-type-face-sbb-roman
with--sbb-typo-font-family
and usefont-weight: normal
(potentially not necessary asnormal
is the default). - Replace CSS variable
--sbb-typo-type-face-sbb-bold
with--sbb-typo-font-family
and usefont-weight: bold
. - Replace CSS variable
--sbb-typo-type-face-sbb-light
with--sbb-typo-font-family
and usefont-weight: 300
.
- Replace
- alert: Removed
disable-animation
property. Useanimation='none'
instead. - notification: Removed
disable-animation
property. Useanimation='none'
instead or depending on the case 'open' or 'close'. - disable-animation: Add the
sbb-disable-animation
CSS class to disable animations for the element and all its children. Consequently, alldisable-animation
properties of the following components have been removed.- Removed
disable-animation
property fromsbb-accordion
- Removed
disable-animation
property fromsbb-alert
- Removed
disable-animation
property fromsbb-autocomplete
- Removed
disable-animation
property fromsbb-datepicker-toggle
- Removed
disable-animation
property fromsbb-dialog
- Removed
disable-animation
property fromsbb-expansion-panel
- Removed
disable-animation
property fromsbb-image
- Removed
disable-animation
property fromsbb-loading-indicator
- Removed
disable-animation
property fromsbb-menu
- Removed
disable-animation
property fromsbb-navigation
- Removed
disable-animation
property fromsbb-navigation-section
- Removed
disable-animation
property fromsbb-notification
- Removed
disable-animation
property fromsbb-overlay
- Removed
disable-animation
property fromsbb-popover
- Removed
disable-animation
property fromsbb-select
- Removed
disable-animation
property fromsbb-selection-panel
- Removed
disable-animation
property fromsbb-sticky-bar
- Removed
disable-animation
property fromsbb-toast
- Removed
disable-animation
property fromsbb-toggle
- Removed
Features
- add default entries for style exports in package.json (#2643) (73271e2)
- add root entry point with global component registration (#2641) (3572fa9)
- alert: add
animation
property (#2507) (8b91eb8) - notification: add
animation
property (#2507) (8b91eb8) - notification: add size 's' (#2606) (cf97ecd)
- reduce font-faces to the single SBB variant (#2618) (679d9e9)
- sbb-accordion, sbb-expansion-panel: add size s (#2603) (015201d)
- sbb-alert: add size s (#2591) (3a82c67)
- sbb-container: allow expanded background color (#2640) (2854e8e)
- split CSS outputs into smaller modules (#2615) (646e5a4)
Bug Fixes
- enable next.js 14 support and add some upstream fixes (#2613) (341b7ce)
- prefix all css variable names (#2609) (788cef7)
- sbb-container: fix background color for nested containers (#2611) (c9f0e0e)
- sbb-dialog: show all content if header is always present (#2637) (924fa37), closes #2635
- sbb-image: fix alt attribute and provide css var for aspect-ratio (#2607) (54d3192)
- sbb-loading-indicator: fix sizes of loading indicator (#2630) (a1270b2)
- sbb-tab-group: avoid unwanted margin block spaces (#2628) (87d10d8)
Code Refactoring
v0.50.2
0.50.2 (2024-04-16)
Bug Fixes
v0.50.1
v0.50.0
0.50.0 (2024-04-11)
⚠ BREAKING CHANGES
- The entry points for the
@sbb-esta/lyne-components
have changed from extension-less to including the extension (e.g.@sbb-esta/lyne-components/button
to@sbb-esta/lyne-components/button.js
). - sbb-dialog: The
sbb-dialog
component now needs the dedicated inner elementssbb-dialog-title
,sbb-dialog-content
, andsbb-dialog-actions
. Use these components to respectively provide a title, a content and, optionally, a footer with an action group. Moreover, the full-screen variant (which occurred when no title was provided to the dialog) has been removed. To achieve a full-screen overlay, please use the newsbb-overlay
component. As a migration help, consider the following example. Old:<sbb-dialog title-content="Title"><p>Dialog content.</p><sbb-action-group slot="action-group">...</sbb-action-group></sbb-dialog>
. New:<sbb-dialog><sbb-dialog-title>Title</sbb-dialog-title><sbb-dialog-content><p>Dialog content</p></sbb-dialog-content><sbb-dialog-actions>...</sbb-dialog-actions></sbb-dialog>
. Previously, a full-screen dialog was displayed if no title was provided to the dialog component:<sbb-dialog><p>Dialog content.</p></sbb-dialog>
. To achieve the same, it is now mandatory to use thesbb-overlay
component:<sbb-overlay><p>Overlay content.</p></sbb-overlay>
. - Changed several internal class names. Consumers shouldn't be affected.
- sbb-form-field: The css var
--sbb-form-field-height
has been renamed to--sbb-form-field-min-height
.
Features
- button: implemented size 'S' (#2544) (396d4dc)
- provide full font characters set as alternative (#2573) (4047883)
- sbb-form-field: support the textarea inside the
<sbb-form-field>
(#2506) (f8316f0), closes #2497 - sbb-overlay: extract
sbb-overlay
component from dialog (#2477) (5ea4fb7), closes #2476 #2470 - sbb-sticky-bar: allow configuration of z-index (#2566) (20a98b2)
- update size tokens (#2551) (74d8929)
Bug Fixes
- fix boolean handling in react wrapper (#2547) (e4ba04b)
- sbb-calendar: align month view label (#2564) (0215e00)
- sbb-dialog: fix accessibility with option to hide the header on scroll (159f536)
- sbb-dialog: fix z-index (#2572) (374d7b7)
- sbb-form-error: fix internal css variable name (#2558) (cc275af)
- set colspan properly (0215e00)
- use valid import/export syntax (#2563) (585cfc5)
Code Refactoring
v0.49.0
0.49.0 (2024-03-28)
⚠ BREAKING CHANGES
- sbb-form-field:
label
property and attribute of<sbb-form-field>
was removed. Use<label>
tag inside<sbb-form-field>
to provide the label information. E.g.<sbb-form-field label="Example">...</sbb-form-field>
becomes<sbb-form-field><label>Example</label>...</sbb-form-field>
- renamed component
sbb-screenreader-only
tosbb-screeen-reader-only
. - sbb-calendar: The
SbbDatepicker
propertyselectedDate
has been renamed toselected
. This also applies to the attributeselected-date
, which has been renamed toselected
. Additionally theDateAdapter
(andNativeDateAdapter
) have been superficially refactored. An important change is that the month is now1
-based, instead of0
-based.
Features
Bug Fixes
- fix scrollbar styles for Chrome (#2524) (1266a21)
- sbb-button: remove gap for hidden icons in icon slot (#2526) (433c57c)
- sbb-form-field: remove label property and attribute (#2523) (602064c)
- stories with label bold for sbb-checkbox and sbb-radio-button (#2528) (9e85be5)
Code Refactoring
v0.48.3
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)