Skip to content

bug: circular, lines-sharp, and lines-sharp-small not getting --spinner-color applied in ion-loading #25180

Description

@dexster

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Specifying the --spinner-color has no effect on a 'circular' spinner. All other spinner shapes work as expected.

Expected Behavior

Spinner color should respect defined custom color

Steps to Reproduce

In an Angular 13 project add a spinner.

I am running Angular 13.3 but if the issue is due to the naming I mentioned in additional Info below then I expect this issue is not framework specific

const loader = await this.loadingController.create({
          spinner: 'circular',
          cssClass: 'my-spinner'
        });

// CSS
.my-spinner {
  --spinner-color: red;
}

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.18.2

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v16.14.0
npm : 8.3.1
OS : macOS Monterey

Additional Information

Should this line not be named 'circular' instead of 'circle'?

:host(.spinner-circular) circle {

Activity

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