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

MultiSelect: Scoped stylings via [dt] don't get applied #17604

Open
2 of 4 tasks
gregorwinkler opened this issue Feb 6, 2025 · 1 comment
Open
2 of 4 tasks

MultiSelect: Scoped stylings via [dt] don't get applied #17604

gregorwinkler opened this issue Feb 6, 2025 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@gregorwinkler
Copy link

Describe the bug

I'm trying to add a custom styling for a p-multi-select in one component, thus I wanted to use the [dt]-property to have a scoped styling.

But no matter how I can't get these scoped styling to work on the p-multi-select. To be sure that there is no weird configuration or other errors in my environment, I followed the example from the documentation with the toggle-switch (https://primeng.org/theming#scopedtokens) and it works as intended.

So, there has to be something in the implementation of the multi-select that ignores the [dt]-property.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/rxhmal66?file=src%2Fapp%2Fmulti-select-basic-demo.ts

Environment

Angular 19, PrimeNG 19

Angular version

19.0.1

PrimeNG version

v19

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  1. View Stackblitz example
  2. See custom stylings in code
  3. See in the rendered app that they don't get applied

Expected behavior

Stylings defined via [dt] should be applied just as styling defined in the app's general theme.

@gregorwinkler gregorwinkler added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 6, 2025
@gregorwinkler
Copy link
Author

Resolved via #17427 in PrimeNG 19.0.6.

But custom stylings via the css function still don't work (see #17440).

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

1 participant