Skip to content

bug: Disabled modern form controls do not have consistent label color on iOS #27184

Closed

Description

@sean-perkins

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

Different Ionic form controls have different label colors when disabled. This looks strange when the controls are stacked together in a list.

CleanShot 2023-04-12 at 12 28 07

Expected Behavior

iOS labels should have a consistent appearance when disabled, regardless of the form control. In this case, the color/opacity should be consistent across all controls (unless the Human Interface Guidelines specify otherwise).

Steps to Reproduce

  1. Render a list of disabled controls with a label
  2. Observe: Inconsistency in the label color across controls

Code Reproduction URL

https://stackblitz.com/edit/gplvwq?file=index.html

Ionic Info

N/A

Additional Information

ion-range has two layers of opacity causing a bigger variance. The host has 0.5 opacity when disabled, but the .label-text-wrapper additionally has another 0.3 opacity applied for the modern form syntax.

Activity

  1. added
    package: core
    type: bug
    on Apr 12, 2023
  2. added a commit that references this issue on May 22, 2023
    90b1fe7
  3. ionitron-bot commented on Jun 16, 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.

  4. locked and limited conversation to collaborators on Jun 16, 2023
  5. added a commit that references this issue on Jan 26, 2024
    995a848
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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