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

Styling issue in production build #35

Open
AhmadDeel opened this issue Nov 28, 2020 · 2 comments
Open

Styling issue in production build #35

AhmadDeel opened this issue Nov 28, 2020 · 2 comments

Comments

@AhmadDeel
Copy link

Bug Report or Feature Request (mark with an x)

- [* ] bug report
- [ ] feature request

Versions.

The version of angular: 9.3.1
The version of this library: 2.0.5

the switch style sometimes is exactly like the presented but other times, especially in the build, is like the images bellow

Screenshot from 2020-11-28 22-17-41
Screenshot from 2020-11-28 22-17-44

@AhmadDeel
Copy link
Author

I tried different values of switch-size, sometimes worked for me but others didn't.
I could not get clean styles in any builds, development, or production!

@AhmadDeel
Copy link
Author

HERE IS MY HTML

<bSwitch [(ngModel)]="switchStat.state" [switch-size]="switchStat.size" (changeState)="onChange($event)"></bSwitch>

AND MY TS CODE

switchStat: any = {
    offText: "Off",
    onText: "On",
    baseClass: "bootstrap-switch",
    size: "mini",
    animate: true,
    animated: false,
    disabled: false,
    readonly: false,
    indeterminate: false,
    inverse: true,
    color: "primary",
    offColor: "",
    labelText: "",
    state: true,
    value: true,
    inverseValue: false,
    handleWidth: "auto",
    labelWidth: "auto",
    offColorValue: false,
    offTextValue: false,
    wrapperClass: "bootstrap-switch",
  };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant