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

Overriding a color primitive has no affect on the corresponding color CSS class #16642

Open
hunhejj opened this issue Oct 25, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Milestone

Comments

@hunhejj
Copy link

hunhejj commented Oct 25, 2024

Describe the bug

I defined my own color palette with:

const MyPreset = definePreset(Aura, {
    primitive: {
        gray: {
            500: '#6e6e6e',
        },
    },
});

Expected Behavior

I would expect that using bg-gray-500 would result in using my custom color, i.e. #6e6e6e.

Actual Behavior

Instead the background has the color of the Prime's default gray-500, i.e. #6b7280.

Workaround

My current workaround is to use bg--[var(--p-gray-500)] instead which correctly resolves in my customized color.

Environment

PrimeNg 18.0.0-beta.3

Reproducer

No response

Angular version

18.2.5

PrimeNG version

18.0.0-beta.3

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@hunhejj hunhejj added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 25, 2024
@cetincakiroglu cetincakiroglu added this to the 18.0.0-rc.1 milestone Oct 26, 2024
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