Skip to content

v6.6.0

Latest

Choose a tag to compare

@dbux-auto-merge-pr dbux-auto-merge-pr released this 03 Dec 09:43
· 7 commits to main since this release
2e5bfb1

@db-ux/ngx-core-components

6.6.0

Minor Changes

  • feat: position floating elements with CSS Anchor Positioning and show them in the top layer (Popover API) - see commit c4e536b:

    • Affects DBPopover, DBTooltip, DBCustomSelect (dropdown) and the first level of the DBControlPanelNavigationItemGroup popover menus
    • The JavaScript positioning is only used as a fallback if the browser does not support position-anchor (the last of the used anchor positioning features, which implies position-area, anchor-name and anchor-scope)
    • While a DBPopover, DBTooltip or DBCustomSelect dropdown is open, the floating element gets popover="manual" and is rendered in the top layer, so it is no longer clipped by overflow of ancestors
    • The floating elements are anchored via anchor-name: --db-anchor and anchor-scope: --db-anchor on the trigger (.db-popover, [data-has-tooltip], the custom select details, the group expand button)
    • With anchor positioning, closed DBPopover and DBTooltip elements are display: none (previously visibility: hidden only) and use position: fixed. Custom rules which show them by only setting visibility no longer work, and code which measures a closed element gets a size of 0, so measurements have to wait until the element is open
    • forceAbsolute has no effect while the browser positions the element, because an absolutely positioned element would make its trigger the containing block and invalidate the anchor
    • The browser positions the element in the top layer only if it supports anchor positioning and the Popover API, otherwise the JavaScript fallback positions it in the regular layer
    • The data-corrected-placement attribute is still set to the side the browser flipped the element to
    • The popover-animation keyframes keep pointer-events: none until the end, so a floating element sliding in over its trigger can't catch the pointer and close/reopen endlessly
    • The anchored placement of a custom select dropdown is read from data-placement on the root .db-custom-select
    • A tooltip which is positioned by the browser gets the inline custom properties --db-tooltip-arrow-inline-start and --db-tooltip-arrow-block-start, and a floating element taller than the viewport gets the inline styles overflow and max-block-size
    • Without JavaScript the hover bridge (::before) of a floating element spans the gap on both sides of its axis, so the pointer can still reach a tooltip which the browser flipped. The arrow of a CSS-only tooltip still follows the requested data-placement

Patch Changes

  • fix(DBAccordion, DBAccordionItem): keep the open state of DBAccordionItem in sync with the native details element - see commit 5509b72:

    • behavior="single" and initOpenIndex no longer require a second click to open or close an item, the item now follows the native toggle event of its details
    • onToggle of DBAccordionItem is now also called when the browser changes the open state: when a sibling of the exclusive group opens, and once on load for items opened by initOpenIndex
    • a controlled DBAccordionItem (open property) has to follow onToggle, because the browser can close it natively
    • the exclusive name is only set on the details of the accordion items, a nested DBCustomSelect no longer closes its parent item
    • initOpenIndex only counts the details of the accordion items, which have to be direct children of li.db-accordion-item
  • fix(DBCustomButton): icon now matches the button size and the brand variant color - see commit e690c0c


@db-ux/react-core-components

6.6.0

Minor Changes

  • feat: position floating elements with CSS Anchor Positioning and show them in the top layer (Popover API) - see commit c4e536b:

    • Affects DBPopover, DBTooltip, DBCustomSelect (dropdown) and the first level of the DBControlPanelNavigationItemGroup popover menus
    • The JavaScript positioning is only used as a fallback if the browser does not support position-anchor (the last of the used anchor positioning features, which implies position-area, anchor-name and anchor-scope)
    • While a DBPopover, DBTooltip or DBCustomSelect dropdown is open, the floating element gets popover="manual" and is rendered in the top layer, so it is no longer clipped by overflow of ancestors
    • The floating elements are anchored via anchor-name: --db-anchor and anchor-scope: --db-anchor on the trigger (.db-popover, [data-has-tooltip], the custom select details, the group expand button)
    • With anchor positioning, closed DBPopover and DBTooltip elements are display: none (previously visibility: hidden only) and use position: fixed. Custom rules which show them by only setting visibility no longer work, and code which measures a closed element gets a size of 0, so measurements have to wait until the element is open
    • forceAbsolute has no effect while the browser positions the element, because an absolutely positioned element would make its trigger the containing block and invalidate the anchor
    • The browser positions the element in the top layer only if it supports anchor positioning and the Popover API, otherwise the JavaScript fallback positions it in the regular layer
    • The data-corrected-placement attribute is still set to the side the browser flipped the element to
    • The popover-animation keyframes keep pointer-events: none until the end, so a floating element sliding in over its trigger can't catch the pointer and close/reopen endlessly
    • The anchored placement of a custom select dropdown is read from data-placement on the root .db-custom-select
    • A tooltip which is positioned by the browser gets the inline custom properties --db-tooltip-arrow-inline-start and --db-tooltip-arrow-block-start, and a floating element taller than the viewport gets the inline styles overflow and max-block-size
    • Without JavaScript the hover bridge (::before) of a floating element spans the gap on both sides of its axis, so the pointer can still reach a tooltip which the browser flipped. The arrow of a CSS-only tooltip still follows the requested data-placement

Patch Changes

  • fix(DBAccordion, DBAccordionItem): keep the open state of DBAccordionItem in sync with the native details element - see commit 5509b72:

    • behavior="single" and initOpenIndex no longer require a second click to open or close an item, the item now follows the native toggle event of its details
    • onToggle of DBAccordionItem is now also called when the browser changes the open state: when a sibling of the exclusive group opens, and once on load for items opened by initOpenIndex
    • a controlled DBAccordionItem (open property) has to follow onToggle, because the browser can close it natively
    • the exclusive name is only set on the details of the accordion items, a nested DBCustomSelect no longer closes its parent item
    • initOpenIndex only counts the details of the accordion items, which have to be direct children of li.db-accordion-item
  • fix(DBCustomButton): icon now matches the button size and the brand variant color - see commit e690c0c


@db-ux/wc-core-components

6.6.0

Minor Changes

  • feat: position floating elements with CSS Anchor Positioning and show them in the top layer (Popover API) - see commit c4e536b:

    • Affects DBPopover, DBTooltip, DBCustomSelect (dropdown) and the first level of the DBControlPanelNavigationItemGroup popover menus
    • The JavaScript positioning is only used as a fallback if the browser does not support position-anchor (the last of the used anchor positioning features, which implies position-area, anchor-name and anchor-scope)
    • While a DBPopover, DBTooltip or DBCustomSelect dropdown is open, the floating element gets popover="manual" and is rendered in the top layer, so it is no longer clipped by overflow of ancestors
    • The floating elements are anchored via anchor-name: --db-anchor and anchor-scope: --db-anchor on the trigger (.db-popover, [data-has-tooltip], the custom select details, the group expand button)
    • With anchor positioning, closed DBPopover and DBTooltip elements are display: none (previously visibility: hidden only) and use position: fixed. Custom rules which show them by only setting visibility no longer work, and code which measures a closed element gets a size of 0, so measurements have to wait until the element is open
    • forceAbsolute has no effect while the browser positions the element, because an absolutely positioned element would make its trigger the containing block and invalidate the anchor
    • The browser positions the element in the top layer only if it supports anchor positioning and the Popover API, otherwise the JavaScript fallback positions it in the regular layer
    • The data-corrected-placement attribute is still set to the side the browser flipped the element to
    • The popover-animation keyframes keep pointer-events: none until the end, so a floating element sliding in over its trigger can't catch the pointer and close/reopen endlessly
    • The anchored placement of a custom select dropdown is read from data-placement on the root .db-custom-select
    • A tooltip which is positioned by the browser gets the inline custom properties --db-tooltip-arrow-inline-start and --db-tooltip-arrow-block-start, and a floating element taller than the viewport gets the inline styles overflow and max-block-size
    • Without JavaScript the hover bridge (::before) of a floating element spans the gap on both sides of its axis, so the pointer can still reach a tooltip which the browser flipped. The arrow of a CSS-only tooltip still follows the requested data-placement

Patch Changes

  • fix(DBAccordion, DBAccordionItem): keep the open state of DBAccordionItem in sync with the native details element - see commit 5509b72:

    • behavior="single" and initOpenIndex no longer require a second click to open or close an item, the item now follows the native toggle event of its details
    • onToggle of DBAccordionItem is now also called when the browser changes the open state: when a sibling of the exclusive group opens, and once on load for items opened by initOpenIndex
    • a controlled DBAccordionItem (open property) has to follow onToggle, because the browser can close it natively
    • the exclusive name is only set on the details of the accordion items, a nested DBCustomSelect no longer closes its parent item
    • initOpenIndex only counts the details of the accordion items, which have to be direct children of li.db-accordion-item
  • fix(DBCustomButton): icon now matches the button size and the brand variant color - see commit e690c0c


@db-ux/v-core-components

6.6.0

Minor Changes

  • feat: position floating elements with CSS Anchor Positioning and show them in the top layer (Popover API) - see commit c4e536b:

    • Affects DBPopover, DBTooltip, DBCustomSelect (dropdown) and the first level of the DBControlPanelNavigationItemGroup popover menus
    • The JavaScript positioning is only used as a fallback if the browser does not support position-anchor (the last of the used anchor positioning features, which implies position-area, anchor-name and anchor-scope)
    • While a DBPopover, DBTooltip or DBCustomSelect dropdown is open, the floating element gets popover="manual" and is rendered in the top layer, so it is no longer clipped by overflow of ancestors
    • The floating elements are anchored via anchor-name: --db-anchor and anchor-scope: --db-anchor on the trigger (.db-popover, [data-has-tooltip], the custom select details, the group expand button)
    • With anchor positioning, closed DBPopover and DBTooltip elements are display: none (previously visibility: hidden only) and use position: fixed. Custom rules which show them by only setting visibility no longer work, and code which measures a closed element gets a size of 0, so measurements have to wait until the element is open
    • forceAbsolute has no effect while the browser positions the element, because an absolutely positioned element would make its trigger the containing block and invalidate the anchor
    • The browser positions the element in the top layer only if it supports anchor positioning and the Popover API, otherwise the JavaScript fallback positions it in the regular layer
    • The data-corrected-placement attribute is still set to the side the browser flipped the element to
    • The popover-animation keyframes keep pointer-events: none until the end, so a floating element sliding in over its trigger can't catch the pointer and close/reopen endlessly
    • The anchored placement of a custom select dropdown is read from data-placement on the root .db-custom-select
    • A tooltip which is positioned by the browser gets the inline custom properties --db-tooltip-arrow-inline-start and --db-tooltip-arrow-block-start, and a floating element taller than the viewport gets the inline styles overflow and max-block-size
    • Without JavaScript the hover bridge (::before) of a floating element spans the gap on both sides of its axis, so the pointer can still reach a tooltip which the browser flipped. The arrow of a CSS-only tooltip still follows the requested data-placement

Patch Changes

  • fix(DBAccordion, DBAccordionItem): keep the open state of DBAccordionItem in sync with the native details element - see commit 5509b72:

    • behavior="single" and initOpenIndex no longer require a second click to open or close an item, the item now follows the native toggle event of its details
    • onToggle of DBAccordionItem is now also called when the browser changes the open state: when a sibling of the exclusive group opens, and once on load for items opened by initOpenIndex
    • a controlled DBAccordionItem (open property) has to follow onToggle, because the browser can close it natively
    • the exclusive name is only set on the details of the accordion items, a nested DBCustomSelect no longer closes its parent item
    • initOpenIndex only counts the details of the accordion items, which have to be direct children of li.db-accordion-item
  • fix(DBCustomButton): icon now matches the button size and the brand variant color - see commit e690c0c


@db-ux/agent-cli

6.6.0

No changes in this release.


@db-ux/core-components

6.6.0

Minor Changes

  • feat: position floating elements with CSS Anchor Positioning and show them in the top layer (Popover API) - see commit c4e536b:

    • Affects DBPopover, DBTooltip, DBCustomSelect (dropdown) and the first level of the DBControlPanelNavigationItemGroup popover menus
    • The JavaScript positioning is only used as a fallback if the browser does not support position-anchor (the last of the used anchor positioning features, which implies position-area, anchor-name and anchor-scope)
    • While a DBPopover, DBTooltip or DBCustomSelect dropdown is open, the floating element gets popover="manual" and is rendered in the top layer, so it is no longer clipped by overflow of ancestors
    • The floating elements are anchored via anchor-name: --db-anchor and anchor-scope: --db-anchor on the trigger (.db-popover, [data-has-tooltip], the custom select details, the group expand button)
    • With anchor positioning, closed DBPopover and DBTooltip elements are display: none (previously visibility: hidden only) and use position: fixed. Custom rules which show them by only setting visibility no longer work, and code which measures a closed element gets a size of 0, so measurements have to wait until the element is open
    • forceAbsolute has no effect while the browser positions the element, because an absolutely positioned element would make its trigger the containing block and invalidate the anchor
    • The browser positions the element in the top layer only if it supports anchor positioning and the Popover API, otherwise the JavaScript fallback positions it in the regular layer
    • The data-corrected-placement attribute is still set to the side the browser flipped the element to
    • The popover-animation keyframes keep pointer-events: none until the end, so a floating element sliding in over its trigger can't catch the pointer and close/reopen endlessly
    • The anchored placement of a custom select dropdown is read from data-placement on the root .db-custom-select
    • A tooltip which is positioned by the browser gets the inline custom properties --db-tooltip-arrow-inline-start and --db-tooltip-arrow-block-start, and a floating element taller than the viewport gets the inline styles overflow and max-block-size
    • Without JavaScript the hover bridge (::before) of a floating element spans the gap on both sides of its axis, so the pointer can still reach a tooltip which the browser flipped. The arrow of a CSS-only tooltip still follows the requested data-placement

Patch Changes

  • fix(DBAccordion, DBAccordionItem): keep the open state of DBAccordionItem in sync with the native details element - see commit 5509b72:

    • behavior="single" and initOpenIndex no longer require a second click to open or close an item, the item now follows the native toggle event of its details
    • onToggle of DBAccordionItem is now also called when the browser changes the open state: when a sibling of the exclusive group opens, and once on load for items opened by initOpenIndex
    • a controlled DBAccordionItem (open property) has to follow onToggle, because the browser can close it natively
    • the exclusive name is only set on the details of the accordion items, a nested DBCustomSelect no longer closes its parent item
    • initOpenIndex only counts the details of the accordion items, which have to be direct children of li.db-accordion-item
  • fix(DBCustomButton): icon now matches the button size and the brand variant color - see commit e690c0c


@db-ux/core-eslint-plugin

6.6.0

No changes in this release.


@db-ux/core-foundations

6.6.0

Minor Changes

  • feat: position floating elements with CSS Anchor Positioning and show them in the top layer (Popover API) - see commit c4e536b:

    • Affects DBPopover, DBTooltip, DBCustomSelect (dropdown) and the first level of the DBControlPanelNavigationItemGroup popover menus
    • The JavaScript positioning is only used as a fallback if the browser does not support position-anchor (the last of the used anchor positioning features, which implies position-area, anchor-name and anchor-scope)
    • While a DBPopover, DBTooltip or DBCustomSelect dropdown is open, the floating element gets popover="manual" and is rendered in the top layer, so it is no longer clipped by overflow of ancestors
    • The floating elements are anchored via anchor-name: --db-anchor and anchor-scope: --db-anchor on the trigger (.db-popover, [data-has-tooltip], the custom select details, the group expand button)
    • With anchor positioning, closed DBPopover and DBTooltip elements are display: none (previously visibility: hidden only) and use position: fixed. Custom rules which show them by only setting visibility no longer work, and code which measures a closed element gets a size of 0, so measurements have to wait until the element is open
    • forceAbsolute has no effect while the browser positions the element, because an absolutely positioned element would make its trigger the containing block and invalidate the anchor
    • The browser positions the element in the top layer only if it supports anchor positioning and the Popover API, otherwise the JavaScript fallback positions it in the regular layer
    • The data-corrected-placement attribute is still set to the side the browser flipped the element to
    • The popover-animation keyframes keep pointer-events: none until the end, so a floating element sliding in over its trigger can't catch the pointer and close/reopen endlessly
    • The anchored placement of a custom select dropdown is read from data-placement on the root .db-custom-select
    • A tooltip which is positioned by the browser gets the inline custom properties --db-tooltip-arrow-inline-start and --db-tooltip-arrow-block-start, and a floating element taller than the viewport gets the inline styles overflow and max-block-size
    • Without JavaScript the hover bridge (::before) of a floating element spans the gap on both sides of its axis, so the pointer can still reach a tooltip which the browser flipped. The arrow of a CSS-only tooltip still follows the requested data-placement

@db-ux/mcp-server

6.6.0

No changes in this release.


@db-ux/core-postcss-plugin

6.6.0

No changes in this release.


@db-ux/core-stylelint

6.6.0

No changes in this release.


@db-ux/core-vite-plugin

6.6.0

No changes in this release.