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

Highlight does not work when entering hex values to set background or text color #59649

Open
hagege opened this issue Mar 6, 2024 · 1 comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended

Comments

@hagege
Copy link

hagege commented Mar 6, 2024

Description

When I try to set the highlight in a paragraph via the toolbar, at least the input of a hex code to change the background or text color does not work. The input is "disturbed" and I cannot enter numbers and digits as desired. The input of RGB works.
@ndiego also checked the issue in the Slack channel #outreach: "Something a bit funny is going on."

Step-by-step reproduction instructions

  1. Create a paragraph
  2. Mark a textpart (for example a word)
  3. via toolbar selection highlight

Screenshots, screen recording, code snippet

issue_in_text

Environment info

=== Environment

  • WordPress: 6.5-RC1-57778
  • PHP: 8.2.15
  • Server: Apache/2.4.58 (Win64) OpenSSL/3.0.12 PHP/8.2.15
  • Database: mysqli (Server: 5.7.33 / Client: mysqlnd 8.2.15)
  • Browser: Chrome 122.0.0.0 (Windows 10/11)
  • Theme: Twenty Twenty-Four 1.0
  • MU-Plugins: None activated
  • Plugins:
    • WordPress Beta Tester 3.5.5

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@hagege hagege added the [Type] Bug An existing feature does not function as intended label Mar 6, 2024
@jordesign jordesign added the [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable label Mar 11, 2024
@webmandesign
Copy link
Contributor

I can confirm this is the case. It seems the Highlight custom color control only allows short 3-characters-long hex color setup. Trying to insert long hex color format (6 chars) does not work and the color control resets itself while typing in the color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants