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

"Hex Color Preview" not working #31000

Closed
noobbbbb opened this issue Nov 17, 2023 · 4 comments
Closed

"Hex Color Preview" not working #31000

noobbbbb opened this issue Nov 17, 2023 · 4 comments

Comments

@noobbbbb
Copy link
Contributor

Description:

Color preview is not displayed when entering a number after "#".

Steps to reproduce:

Type "#333333" in the message box to send

Expected behavior:

A color preview is displayed.

Actual behavior:

The text "#333333" is displayed as you type.

Server Setup Information:

  • Version of Rocket.Chat Server: 6.4.6
  • Operating System: Rocky Linux 9
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • NodeJS Version: v14.21.3
  • MongoDB Version:6.0.7

Client Setup Information

  • Desktop App or Browser Version: Desktop App 3.9.10
  • Operating System: Windows 11

Additional context

Relevant logs:

@rituraj12797
Copy link

so does the color pallet appear any other way ? or you want to add a feature that will display color alongside code when we write some hex Code ?

@rituraj12797
Copy link

also please do send a snap shot of what behaviour you want

@noobbbbb
Copy link
Contributor Author

Perhaps you are mistaken.
There is no need to create a new one. It is a function that is originally provided. We want to know why it is not working. And that function was useful.
#3446

@hugocostadev
Copy link
Contributor

Actually to display hex colors you should write like that:
color:#000 or color:#000 and they will be rendered as rgba like that:
image

I know that the docs page it's not clear about it, I'll request an update. Thanks!


Questions? Help needed? Feature Requests?

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

No branches or pull requests

3 participants