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

Component: Color Picker - Pop-up not showing the full palette when clicked, just the current selected colour #16449

Open
Eagle-Tim opened this issue Sep 27, 2024 · 9 comments
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Milestone

Comments

@Eagle-Tim
Copy link

Eagle-Tim commented Sep 27, 2024

Describe the bug

When using the color picker, on clicking the button to show the popup, it is just showing a single square of one colour (the currently selected colour), rather than a full palette of colours. The slider also shows no colours

image

Note, this screenshot is taken from the Stackblitz linked to from PrimeNg's documentation

Environment

Windows

Reproducer

https://stackblitz.com/edit/acucgw?file=package.json

Angular version

17.3.10

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.14.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Set up a color picker component
  2. Click the button to open it

Color picker pop-up only shows one colour (the selected one), and slider is blank

Expected behavior

Normal color palette and slider is shown

@Eagle-Tim Eagle-Tim added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 27, 2024
@simonstaffgenius
Copy link

I got the same issue. Also happened like 5 days ago.
It seems like the ./media/hue.png and ./media/color.png are missing.

@daniel1919-00
Copy link

I got the same issue after updating to 17.18.11.

image

@PrimeFactor7
Copy link

Have the issue with color picker with inline mode as well. I updated to 17.18.11 tried to rollback to my previous version 17.18.5 and the issue persists

@simonstaffgenius
Copy link

simonstaffgenius commented Oct 14, 2024

As a temporary workaround, you can replace the files under node_modules/primeng/resources/images.

For color.png use:
color

For hue.png use:
hue

Note: This only works temporarily until you reinstall your packages.

@arnoudb
Copy link

arnoudb commented Oct 21, 2024

@PrimeFactor7

Have the issue with color picker with inline mode as well. I updated to 17.18.11 tried to rollback to my previous version 17.18.5 and the issue persists

reverting to 17.18.10 worked for me

@deancanen
Copy link

Can confirm, seems like both PNG files are corrupted - after rolling back to 17.18.10, the PNGs load correctly.

@faelpinho
Copy link

Related to issue #13820

I'm currently using the version 17.18.10. The PNG still not loading for me.

Thanks to @mrafiqk for a good workaround:

/* You can add global styles to this file, and also import other style files */
.p-colorpicker-panel .p-colorpicker-color {
	background: transparent url("assets/img/custom-color.png") no-repeat left top
}


.p-colorpicker-panel .p-colorpicker-hue {
	background: transparent url("assets/img/custom-hue.png") no-repeat left top !important;
}

@rickstick-code
Copy link

I just downloaded the images and inserted them manually as well 👍 Perfect workaround for now Other Issue Ticket

@mertsincan mertsincan added this to the 17.18.13 milestone Nov 19, 2024
@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 19, 2024
@mertsincan mertsincan modified the milestones: 17.18.13, 17.x Dec 9, 2024
@ThoSap
Copy link
Contributor

ThoSap commented Dec 29, 2024

See #13820 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
Status: No status
Development

No branches or pull requests

10 participants