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

Table text does not change color after switching from dark theme to light theme #4693

Closed
rattat0r opened this issue Oct 20, 2023 · 3 comments
Assignees
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)

Comments

@rattat0r
Copy link

Description

The text in the report content edit table does not change color after changing from a dark theme to a light theme. Because of this, the text is not visible.

Environment

  1. OS: Ubuntu 20.04.6
  2. OpenCTI version: OpenCTI 5.10.1
  3. OpenCTI client: frontend

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Go to Report->Knowledge->Content mapping view
  2. Switch to Edition mode
  3. Add a table and enter text into it
  4. Change the theme to light
  5. The text remains white, so it is not visible

Expected Output

After changing the theme color, the text will change to the opposite color.

Actual Output

After changing the theme color, the text remains the same color, so it is not visible

Screenshots

Before
image
After
image

@rattat0r rattat0r added the bug use for describing something not working as expected label Oct 20, 2023
@lndrtrbn lndrtrbn self-assigned this Oct 20, 2023
@lndrtrbn
Copy link
Member

Until this is fix, you can manually change the color of the text using the tool in the screenshot below
image

@SamuelHassine SamuelHassine added this to the Release 5.12.0 milestone Oct 24, 2023
@rattat0r
Copy link
Author

@lndrtrbn I discovered that this issue occurs when using the "Inter" font. When using the font "Arial" everything works fine.

@lndrtrbn
Copy link
Member

After some tests, I don't think it's font family related. I could reproduce the issue no matter the font I chose.

However, it seems that the issue is that rich text editor theme is not reloaded correctly when changing the theme in settings.
If I reproduce the steps of the issue, and refresh the page then I have correct font colors and text in the table is so visible.

@SamuelHassine SamuelHassine modified the milestones: Release 5.12.0, Release 5.13.0, Release 5.11.13 Oct 29, 2023
@SamuelHassine SamuelHassine added the solved use to identify issue that has been solved (must be linked to the solving PR) label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

No branches or pull requests

3 participants