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

toggleButton : StyleClass is not passed to child div #14292

Closed
Triskae opened this issue Dec 7, 2023 · 3 comments
Closed

toggleButton : StyleClass is not passed to child div #14292

Triskae opened this issue Dec 7, 2023 · 3 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Triskae
Copy link

Triskae commented Dec 7, 2023

Describe the bug

In the documentation it says that we can use the styleClass option to provide a class to parent. In PrimeNG V17, it's not working properly, since the class put in styleClass is not copied to parent div.

The IDE is also reporting the attribute style class is not allowed.

image

The Stackblitz for this example is also broken.

Environment

"@angular/animations": "^17.0.3",
"@angular/cdk": "^17.0.1",
"@angular/common": "^17.0.3",
"@angular/compiler": "^17.0.3",
"@angular/core": "^17.0.3",
"@angular/fire": "^16.0.0",
"@angular/forms": "^17.0.3"
"primeng": "^17.0.0",

Reproducer

No response

Angular version

17

PrimeNG version

17

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

21.2.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@Triskae Triskae added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 7, 2023
@SoyDiego
Copy link
Contributor

SoyDiego commented Dec 7, 2023

Describe the bug

In the documentation it says that we can use the styleClass option to provide a class to parent. In PrimeNG V17, it's not working properly, since the class put in styleClass is not copied to parent div.

The IDE is also reporting the attribute style class is not allowed.

image

The Stackblitz for this example is also broken.

Environment

"@angular/animations": "^17.0.3", "@angular/cdk": "^17.0.1", "@angular/common": "^17.0.3", "@angular/compiler": "^17.0.3", "@angular/core": "^17.0.3", "@angular/fire": "^16.0.0", "@angular/forms": "^17.0.3" "primeng": "^17.0.0",

Reproducer

No response

Angular version

17

PrimeNG version

17

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

21.2.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

I don't understand your problem. In the title you wrote toggleButton, but in your example the problem is in InputGroup.
Could you be more clear and add a Stackblitz to see the problem?
In inputgroup the docs doesn't say you can add styleClass in any part

Thanks

@Triskae
Copy link
Author

Triskae commented Dec 7, 2023

Your right ! My bad, thanks @SoyDiego

@Triskae Triskae closed this as completed Dec 7, 2023
@SoyDiego
Copy link
Contributor

SoyDiego commented Dec 7, 2023

Your right ! My bad, thanks @SoyDiego

no problem, happy to help! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants