igniteui-webcomponents icon indicating copy to clipboard operation
igniteui-webcomponents copied to clipboard

Expansion Panel default slotted element should be displayed as block element.

Open didimmova opened this issue 5 months ago • 0 comments

Which component(s) are affected?

Expansion panel

Description

When you use the default slot of the expansion panel with an inline element (span for example), the text isn't flowing properly. There should be a style added to make any slotted element in the default slot a block element.

Here's the issue with the span element: Screenshot 2024-09-25 at 14 35 17

And here's how it looks like if you use "display: block" for it: Screenshot 2024-09-25 at 14 39 28

Reproduction

  1. Open the expansion panel sample
  2. Use an inline element (for example span) to slot the text in the default slot.
  3. See how it speads more than it should.

Workaround

All slotted elements in the default slot should use the "display: block" style.

Is this a regression?

No or unsure. This never worker, or I haven't tried before.

Affected versions

5.0.1

Browser/OS/Node environment

Tested on Chrome, probably the problem is present in all browsers.

didimmova avatar Sep 25 '24 11:09 didimmova