Skip to content

[Bug]: Slider height remains static/ flex-grow is not taken into account #2017

@RivaIvanova

Description

@RivaIvanova

Which component(s) are affected?

Slider (single/range)

Description

The height of the igc-slider and igx-slider differ when used in the same scenario.

Image Image

Reproduction

  1. Use the igniteui-angular dev demos where the two sliders are compared http://localhost:4200/slider-showcase
  2. Add 2-3 sliders inside the <article>

Result: Each igx-slider has a height of 100px. Each igc-slider has a height of 48px. I assume the Angular behavior is the expected one due to the flex-grow: 1 rule?

<strong>Angular Slider</strong>
<article class="sample-item">
    <igx-slider ...></igx-slider>
    <igx-slider ...></igx-slider>
    <igx-slider ...></igx-slider>
</article>
<strong>WC Slider</strong>
<article class="sample-item">
    <igc-slider ...></igc-slider>
    <igc-slider ...></igc-slider>
    <igc-slider ...></igc-slider>
</article>
.sample-item {
    display: flex;
    flex-direction: column;
    height: 300px;
}

Workaround

Applying the [part~='base'] CSS rules on the igc-slider itself.

Is this a regression?

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

Affected versions

any

Browser/OS/Node environment

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions