Skip to content

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

Closed

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

Activity

  1. liamdebeasi commented on Apr 13, 2023

    @liamdebeasi
    Contributor

    Looks like these legacy range styles still apply when used in an item:

    MD:

    @include padding($range-md-padding-vertical, $range-md-padding-horizontal);

    iOS:
    @include padding($range-ios-padding-vertical, $range-ios-padding-horizontal);

  2. added
    package: core
    type: bug
    on Apr 13, 2023
  3. self-assigned this
    on Apr 13, 2023
  4. added a commit that references this issue on Sep 20, 2023
    0104d89
  5. added 2 commits that reference this issue on Sep 22, 2023
    8169741
    9050a74
  6. ionitron-bot commented on Oct 20, 2023

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  7. locked and limited conversation to collaborators on Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

package: coretype: bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions