scania-digital-design-system / tegel

Tegel Design System
https://tegel.scania.com
MIT License
17 stars 13 forks source link

[Bug report]: The expand-row slot expands the entire table instead of overflowing #645

Open adarean5 opened 4 months ago

adarean5 commented 4 months ago

Requirements before reporting

Package versions

@scania/tegel: 1.9.1

Browser

Chrome

Framework

Angular

Version

Angular 17

Reproduction steps

  1. Create a component that is wider than your table
  2. Place it in the "expand-row" slot in the tds-table-body-row-expandable component.
  3. Expand the expandable row to display the wide component

Code example

No response

Screenshots

The table with wide content in the expanded area collapsed. The table fits in the modal. image

After expanding, the wide content row also expands the entire table and all the columns no longer fit into view. image

Expected behaviour

The expand-row should never increase the width of the table. Instead, the expand row should fit into the container, so the contents can be responsively positioned (for example with display:flex). Any elements, that are wider than the available width inside the expand-row slot, should overflow instead of expanding the entire table.

Console errors

Add warning/error message

Contact information

jernej.strazisar@scania.com