Skip to content

StyleDefault will set light text instead of dark. #213

@crazyserver

Description

@crazyserver

Bug Report

Problem

When dark mode is selected on the iOS settings, if you have a white background, using styleDefault will use light text instead of dark. Also tested using styleBlackOpaque with the same behaviour.

When dark mode is disabled, styleDefault will use dark text as expected.

Probably a new function styleDarkContent is needed.

What is expected to happen?

Using styleDefault should use dark text.

What does actually happen?

Using styleDefault will use light text instead of dark.

Information

  1. Open iOS system settings and set dark mode.
  2. Open the app, and check white over white is applied.

Command or Code

    StatusBar.overlaysWebView(false);
    StatusBar.backgroundColorByHexString('#FFFFFF');
    StatusBar.styleDefault();

Environment, Platform, Device

Using latest version 2.4.3
iOS 14.5 or 14.6

Version information

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions