Skip to content

Switch component in Safari Mobile has ugly black box when disabled and checked #4771

Closed

Description

@JGreenlee

Current behaviour

I viewed https://snack.expo.dev/@react-native-paper/react-native-paper-example_v5 on Safari iOS 18

Image

Workaround

Unfortunately, there's no prop of Switch that will style the underlying <input> element, which is where the problem is, so the workaround is a global CSS rule:

input:is([type="checkbox"], [type="radio"]):checked:disabled {
  background-color: transparent;
}
Image

Your Environment

software version
ios 18.5

Activity

  1. adrcotfas commented on May 28, 2026

    @adrcotfas
    Collaborator

    This should be fixed after #4957. @JGreenlee can you please verify with the latest main?
    Please reopen the issue if it's still there.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions