Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ion toggle background not updating on IOS #19168

Closed
chrisgriffith opened this issue Aug 23, 2019 · 4 comments
Closed

bug: ion toggle background not updating on IOS #19168

chrisgriffith opened this issue Aug 23, 2019 · 4 comments
Labels

Comments

@chrisgriffith
Copy link
Contributor

chrisgriffith commented Aug 23, 2019

Ion Toggle background not updating on IOS

Ionic version:
[x] 4.7.4

Current behavior:
The background for the ion-toggle does not pick up the --background color variable on iOS (via Ionic Lab). This value is properly applied for Android.

Expected behavior:
The background of the ion-toggle should be the color defined by the --background color variable.

Steps to reproduce:
Have an ion-toggle, set the color for the two parts (background and handle) and the two states.

Related code:

ion-toggle {
    --background: blue;
    --background-checked: red;
    --handle-background: green;
    --handle-background-checked: yellow;
}

Other information:

Ionic info:

Ionic:

   Ionic CLI                     : 5.2.4 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.7.4
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.0.0

Utility:

   cordova-res : 0.5.2 (update available: 0.6.0)
   native-run  : not installed

System:

   NodeJS : v10.14.2 (/usr/local/bin/node)
   npm    : 6.10.2
   OS     : macOS Mojave```
@ionitron-bot ionitron-bot bot added the triage label Aug 23, 2019
@adamduren
Copy link
Contributor

@chrisgriffith can you add a meaningful title please?

@chrisgriffith
Copy link
Contributor Author

Done. :)

@brandyscarney brandyscarney changed the title bug: bug: ion toggle background not updating on IOS Sep 5, 2019
@brandyscarney
Copy link
Member

Thanks for the issue! This is a duplicate of #18940 which was closed by 94e525c.

This should be fixed in 4.8.0: https://github.com/ionic-team/ionic/releases/tag/v4.8.0

@ionitron-bot
Copy link

ionitron-bot bot commented Oct 5, 2019

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants