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

fix(llm_judge): Fix display issues in qa_browser #3133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dave-tucker
Copy link

@dave-tucker dave-tucker commented Mar 8, 2024

Why are these changes needed?

The .update method was deprecated in Gradio 4.x which caused the dropdown to show an error.

Added a CSS class to set the text color inside colored blocks to be black as the white text on those pastel colors had too little contrast to be easily read.

Before
Screenshot 2024-03-08 at 16 27 33
Screenshot 2024-03-08 at 16 27 49

After
Screenshot 2024-03-08 at 16 27 07

Related issue number (if applicable)

Checks

  • I've run format.sh to lint the changes in this PR.
  • I've included any doc changes needed.
  • I've made sure the relevant tests are passing (if applicable).

@merrymercy
Copy link
Member

@dave-tucker Could you test whether your CSS works for light mode as well?

The .update method was deprecated in Gradio 4.x which caused the dropdown to
show an error.

Added a CSS class to set the text color inside colored blocks to be black as
the white text on those pastel colors had too little contrast to be easily
read.

Signed-off-by: Dave Tucker <[email protected]>
@dave-tucker
Copy link
Author

@merrymercy good call. Everything looks fine in light mode, but it did show that the colors used were not consistent between light and dark mode. I've fixed the PR and force pushed my changes.
This is now how light and dark mode look:
Screenshot 2024-03-13 at 15 18 15
Screenshot 2024-03-13 at 15 18 07

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

Successfully merging this pull request may close these issues.

None yet

2 participants