Skip to content

bug: Range knob is clipped with modern form syntax in ion-item #27199

@sean-perkins

Description

@sean-perkins

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

When a modern ion-range is rendered inside of ion-item, the range knob is clipped when at the start or end of the control.

Comparison of standalone vs. inside ion-item:
CleanShot 2023-04-13 at 11 44 51

Note: This behavior only happens when rendered inside ion-item. When ion-range is rendered by itself, it does not clip.

Expected Behavior

The range should adjust styling when used inside of ion-item, so that the range knob is always visible and never clipped.

Steps to Reproduce

  1. Render <ion-range aria-label="Volume"></ion-range> inside of ion-item.
  2. Observe: The range knob is clipped (for both iOS and MD)

Code Reproduction URL

https://stackblitz.com/edit/angular-9scsxd?file=src%2Fapp%2Fexample.component.html

Ionic Info

N/A

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions