Skip to content

chore(main): release 0.51.0#1

Open
github-actions[bot] wants to merge 1 commit intomainfrom
release-please--branches--main--components--lyne-components
Open

chore(main): release 0.51.0#1
github-actions[bot] wants to merge 1 commit intomainfrom
release-please--branches--main--components--lyne-components

Conversation

@github-actions
Copy link

🤖 I have created a release beep boop

0.51.0 (2024-04-22)

⚠ 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 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>.
  • 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.
  • 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 to sbb-screeen-reader-only.
  • sbb-calendar:
  • sbb-navigation: The 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.
  • 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 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
    • 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: 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:
      • 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>
    • The usage of an icon-only 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 case
    • Check and replace any sbb-button in sbb-toast with the new sbb-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>
    • sbb-action-group now only accepts sbb-block-link | sbb-block-link-button besides any <sbb-button> variant
    • sbb-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
    • SASS mixin renamings:
      • 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
  • color: Removed 'default' suffix from color tokens (e.g. --sbb-color-iron-default => --sbb-color-iron and SbbColorIronDefault => SbbColorIron).
  • multiple: rename type TitleLevel to SbbTitleLevel
  • sbb-image: property noBorderRadius has been replaced by borderRadius which can receive 'default', 'none' and 'round'.
  • sbb-popover: Component 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).
  • sbb-alert: renamed willPresent event to willOpen and didPresent to didOpen.
  • sbb-teaser: The property 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).
  • The following components have been removed: 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.

Features

  • a11y: implemented a11y tree snapshot function (#2378) (3484e7b)
  • button variant refactoring (98ea7f5)
  • button: implemented size 'S' (#2544) (396d4dc)
  • form-field: allow label to be visually hidden (#2361) (9f618db)
  • implement experimental support for server side rendering (SSR) (#2466) (3abcc68)
  • implement initial support for SSR (#2437) (39d37ca)
  • increase --sbb-font-size-title-5 for zero to small breakpoints (#2448) (15b786a)
  • provide full font characters set as alternative (#2573) (4047883)
  • sbb-alert: add size s (#2591) (3a82c67)
  • sbb-card: introduce new color for active state (#2462) (6553d6b)
  • sbb-checkbox, sbb-toggle-check: introduce native form support (#2456) (c9549a1)
  • sbb-clock: introduce option to configure color of seconds hand (#2400) (b94d92d)
  • sbb-container: first implementation (#2271) (7403b67)
  • sbb-form-field: support the textarea inside the &lt;sbb-form-field&gt; (#2506) (f8316f0), closes #2497
  • sbb-image: introduce support for round variant (#2401) (971bd5c)
  • sbb-navigation: remove navigation section divider (#2473) (71c1412)
  • sbb-overlay: extract sbb-overlay component from dialog (#2477) (5ea4fb7), closes #2476 #2470
  • sbb-screenreader-only: initial implementation (#2377) (2e763d4)
  • sbb-selection-panel: increase border width for active state (#2463) (4c4bf5c), closes #2461
  • sbb-status: allow custom icons (#2403) (56b4068), closes #2398
  • sbb-status: component implementation (#2262) (8e1da55)
  • sbb-sticky-bar: allow configuration of z-index (#2566) (20a98b2)
  • sbb-sticky-bar: allow overlapping to the following content (#2459) (9518dfd)
  • sbb-teaser-paid: first implementation (#2434) (68f807a)
  • sbb-teaser: redesign (#2211) (ba5f86c)
  • update journey-summary storybook title (#2390) (3469654)
  • update size tokens (#2551) (74d8929)

Bug Fixes

  • adapt lyne tokens change (#2582) (94bf4f0)
  • adapt react package import paths missed during migration (#2589) (0781c6a)
  • adopt sass import guidelines (#2340) (f585122), closes #2307
  • fix boolean handling in react wrapper (#2547) (e4ba04b)
  • fix button dts files (#2485) (2228a02)
  • fix imports of common styles (#2475) (fda1960)
  • fix order of class decorators (#2489) (580b56f)
  • fix scrollbar styles for Chrome (#2524) (1266a21)
  • fix SSR of sbb-select (#2341) (c46e63e)
  • fix unresolved sass imports (#2483) (964ab42)
  • fix using of new Date() (#2315) (9f69606)
  • improve creation of react component (#2337) (a64a3eb)
  • improve SSR handling of React components with children (#2306) (da0c1c5)
  • layout: apply max-width only for ultra screen size (#2458) (cce71b2)
  • multiple: render lists with just one element as span (#2381) (e703be1)
  • prevent re-rendering during update (#2343) (b3e7a02)
  • react-wrapper: avoid writing classname property on a component (#2421) (1ee492e)
  • remove setTimeout from SlotChildObserver (#2334) (4905c9b)
  • remove side effects entries from package.json (d45c2cb)
  • sbb-alert: refactor animation to properly work in Safari (#2394) (30bf7c1), closes #2389
  • sbb-autocomplete: highlight option when options change (#2317) (76affb1)
  • sbb-button: remove gap for hidden icons in icon slot (#2526) (433c57c)
  • sbb-calendar: align month view label (#2564) (0215e00)
  • sbb-calendar: using keyboard navigation loses focus (#2354) (68be709)
  • sbb-checkbox, sbb-toggle-check: enable attribute mutation after form reset (#2505) (6bd8924)
  • sbb-container: container causes interference with overlay components (#2419) (099164c)
  • sbb-container: remove overflowing margin without using overflow (#2427) (42b7da3)
  • 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)
  • sbb-form-field: remove label property and attribute (#2523) (602064c)
  • sbb-form-field: suppress firefox outline for external framework compatibility (#2386) (6374162)
  • sbb-header: fix border radius of focus outline in Safari (#2365) (aa409e7)
  • sbb-header: fix header shadow on keyboard navigation (#2508) (3eefbea)
  • sbb-header: shows the header if it has visible focus within (#2237) (37061ad)
  • sbb-icon: fix preserving space during loading (#2308) (2a01652)
  • sbb-journey-header: add non breaking space for screen readers (#2304) (81a2c0a)
  • sbb-map-container: adapt width starting from ultra breakpoint (#2417) (3c55d0c)
  • sbb-map-container: add scrollbar background and divider line (#2316) (4b0f765)
  • sbb-navigation-section: ensure sbb-active initializes correctly (#2493) (baede50)
  • sbb-navigation: fix active and focus handling (#2471) (ea81790)
  • sbb-navigation: fix navigation actions contrast ratio (#2481) (f605a1e)
  • sbb-notification: border left stability (#2330) (0cae556)
  • sbb-notification: delay removal of notification after closing (#2333) (63ba57c)
  • sbb-notification: fix accessibility (#2325) (00e9540)
  • sbb-notification: fix notification animation (#2274) (5272043)
  • sbb-overlay: consider sbb-overlay as overlay in inert mechanism (#2588) (4ecc125)
  • sbb-pearl-chain-time: use role paragraph for accessibility reasons (#2424) (9009807)
  • sbb-popover: rename tooltip to popover and fix accessibility bugs (#2368) (70c1c07), closes #2018
  • sbb-radio-group, sbb-tab-group: avoid incorrect setup if component is invisible during init (#2446) (1586137)
  • sbb-select: fix hydration timing issue (#2301) (7c52c9a)
  • sbb-select: hide placeholder when using floating label in HCM (#2399) (dd38d13), closes #2326
  • sbb-selection-panel: fix transition of border-width (#2468) (8300b7f)
  • sbb-selection-panel: fix transition of border-width [second attempt] (#2469) (942bf45)
  • sbb-select: let promise of update cycle complete (5086cd6)
  • sbb-select: wait for shadow DOM readiness before setup when using nextjs (#2409) (fbef967)
  • sbb-status: add index export (03349f0)
  • sbb-status: fix flex behavior in Firefox (#2479) (92d7492)
  • sbb-status: fix text styling (#2457) (292d316)
  • sbb-sticky-bar: remove unnecessary import to container (#2406) (c935436)
  • sbb-teaser-hero: use auto hyphens for title text to avoid overflow (#2581) (3b8844c)
  • sbb-teaser: prevent overlapping chip if including long content (#2450) (b78b3ce)
  • sbb-title: move font-smoothing into scss mixin (#2355) (331bac3)
  • sbb-toast: fix default z-index (#2428) (d0927ff)
  • sbb-toggle: deal with undefined option component (#2327) (97a4061)
  • sbb-toggle: initial animation glitch (#2321) (6c217e9)
  • scrollbar: fix track color in nested context (#2363) (82a4ad8)
  • selection-panel: fix typo (#2347) (074b63b)
  • set colspan properly (0215e00)
  • stories with label bold for sbb-checkbox and sbb-radio-button (#2528) (9e85be5)
  • update import paths missed in the migration (#2579) (9c90fa8)
  • use renderAttributesOnCreate for react (#2323) (1de1379)
  • use valid import/export syntax (#2563) (585cfc5)

Documentation

  • multiple: remove undefined type from titleLevel (#2447) (c2532cd)

Styles

  • color: remove 'default' suffix from color tokens (77454de)

Code Refactoring

  • re-structure common behaviors (#2533) (906d576), closes #2534
  • remove unused components (e3b29eb)
  • rename component name from sbb-screenreader-only to sbb-screeen-reader-only (#2520) (6fbf085)
  • restructure entry points (#2575) (3d4c8ab)
  • sbb-calendar: implement initial support for other date libraries (#2511) (6d4e9c2)
  • sbb-navigation: improve active handling and focus (4f8f309)

This PR was generated with Release Please. See documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants