🧪 Experimental base components for Lyne Design System
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 6 months ago
typography.css
into smaller consumable modules, we had to change the names of some files.
typography.css
to standard-theme.css
. Notice: there is still a file called typography.css
that contains only a few typography-related outputs. Therefore, import adaption from typography.css
to standard-theme.css
is mandatory.fullfont.css
to font-characters-extension.css
.Roman
, Bold
, and Light
font-face variants with the single SBB
font. Using CSS font-weight
property automatically selects the correct font family. Migration guide:
font-family: "SBBWeb Roman", ...
with font-family: "SBB", ...
and use font-weight: normal
(potentially not necessary as normal
is the default).font-family: "SBBWeb Bold", ...
with font-family: "SBB", ...
and use font-weight: bold
or CSS class sbb-text--bold
.font-family: "SBBWeb Light", ...
with font-family: "SBB", ...
and use font-weight: 300
.--sbb-typo-type-face-sbb-roman
with --sbb-typo-font-family
and use font-weight: normal
(potentially not necessary as normal
is the default).--sbb-typo-type-face-sbb-bold
with --sbb-typo-font-family
and use font-weight: bold
.--sbb-typo-type-face-sbb-light
with --sbb-typo-font-family
and use font-weight: 300
.disable-animation
property. Use animation='none'
instead.disable-animation
property. Use animation='none'
instead or depending on the case 'open' or 'close'.sbb-disable-animation
CSS class to disable animations for the element and all its children. Consequently, all disable-animation
properties of the following components have been removed.
disable-animation
property from sbb-accordion
disable-animation
property from sbb-alert
disable-animation
property from sbb-autocomplete
disable-animation
property from sbb-datepicker-toggle
disable-animation
property from sbb-dialog
disable-animation
property from sbb-expansion-panel
disable-animation
property from sbb-image
disable-animation
property from sbb-loading-indicator
disable-animation
property from sbb-menu
disable-animation
property from sbb-navigation
disable-animation
property from sbb-navigation-section
disable-animation
property from sbb-notification
disable-animation
property from sbb-overlay
disable-animation
property from sbb-popover
disable-animation
property from sbb-select
disable-animation
property from sbb-selection-panel
disable-animation
property from sbb-sticky-bar
disable-animation
property from sbb-toast
disable-animation
property from sbb-toggle
animation
property (#2507) (8b91eb8)animation
property (#2507) (8b91eb8)Published by github-actions[bot] 6 months ago
@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
component now needs the dedicated inner elements sbb-dialog-title
, sbb-dialog-content
, and sbb-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 new sbb-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 the sbb-overlay
component: <sbb-overlay><p>Overlay content.</p></sbb-overlay>
.--sbb-form-field-height
has been renamed to --sbb-form-field-min-height
.<sbb-form-field>
(#2506) (f8316f0), closes #2497
sbb-overlay
component from dialog (#2477) (5ea4fb7), closes #2476 #2470
Published by github-actions[bot] 7 months ago
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>
sbb-screenreader-only
to sbb-screeen-reader-only
.SbbDatepicker
property selectedDate
has been renamed to selected
. This also applies to the attribute selected-date
, which has been renamed to selected
. Additionally the DateAdapter
(and NativeDateAdapter
) have been superficially refactored. An important change is that the month is now 1
-based, instead of 0
-based.Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
active
property of <sbb-navigation-button>
/<sbb-navigation-link>
(former <sbb-navigation-action>
) has been removed. Add the CSS class sbb-active
to the corresponding button/link, to mark it as active. Additionally, whenever sbb-active
class is set in navigation, the corresponding navigation section, if one is connected, automatically opens.sbb-card-action
: split in sbb-card-button
and sbb-card-link
sbb-header-action
: split in sbb-header-button
and sbb-header-link
sbb-menu-action
: split in sbb-menu-button
and sbb-menu-link
sbb-navigation-action
: split in sbb-navigation-button
and sbb-navigation-link
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
: the variant
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:
href
set), replace it with <sbb{-variant}-button>
href
set), replace it with <sbb{-variant}-button-link>
isStatic
set), replace it with <sbb{-variant}-button-static>
sbb-button
in a sbb-form-field
is not supported anymore; a new component named sbb-mini-button
has been created to handle this specific casesbb-button
in sbb-toast
with the new sbb-transparent-button
/sbb-transparent-button-link
, since the variant is not automatically set anymoresbb-link
has been split into nine components, based on type and variant:
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="...">
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>
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>
sbb-action-group
now only accepts sbb-block-link | sbb-block-link-button
besides any <sbb-button>
variantsbb-link-list
now only accepts sbb-block-link | sbb-block-link-button
sbb-skiplink-list
now only accepts sbb-block-link | sbb-block-link-button
sbb-toast
now only accepts sbb-link | sbb-link-button | sbb-transparent-button | sbb-transparent-button-link
link-variables
SASS mixin renamed to block-link-variables
,link-variables--negative
SASS mixin renamed to block-link-variables--negative
,link-variables--inline
SASS mixin renamed to link-variables
,link-variables--inline-negative
SASS mixin renamed to link-variables--negative
link-inline-consolidation
SASS mixin renamed to link-consolidation
,link-inline
SASS mixin renamed to link
,link-inline-negative
SASS mixin renamed to link-negative
--sbb-color-iron-default
=> --sbb-color-iron
and SbbColorIronDefault
=> SbbColorIron
).TitleLevel
to SbbTitleLevel
--sbb-font-size-title-5
for zero to small breakpoints (#2448) (15b786a)Published by github-actions[bot] 8 months ago
noBorderRadius
has been replaced by borderRadius
which can receive 'default', 'none' and 'round'.Published by github-actions[bot] 8 months ago
sbb-tooltip
has been renamed to sbb-popover
. Component sbb-tooltip-trigger
has been renamed to sbb-popover-trigger
Attribute sbb-tooltip-close
has been renamed to sbb-popover-close
. Every CSS tooltip variable has been renamed from --sbb-tooltip-*
to --sbb-popover-*
(including trigger).Published by github-actions[bot] 9 months ago
willPresent
event to willOpen
and didPresent
to didOpen
.Published by github-actions[bot] 9 months ago
isStacked
has been removed in favor of alignment
. Please see the documentation for further info. The description
is not clamped to two lines anymore (responsibility of consumer). The slotted image
has now a default width of 300px
. The slot, formerly named description
, has been replaced by the unnamed slot. Support of nested p
elements dropped (invalid html).sbb-timetable-barrier-free
, sbb-timetable-park-and-rail
, sbb-timetable-row-column-headers
, sbb-timetable-row-day-change
, sbb-timetable-row-header
, sbb-timetable-transportation-number
, sbb-timetable-transportation-time
, timetable-travel-hints
.