Skip to content

fix(poll): restore the dark theme on the rebuilt poll panels - #29

Merged
antobinary merged 1 commit into
antobinary:merge-v4.0.x-release-into-v4.1.x-developfrom
germanocaumo:fix/merge-41-poll-dark-theme
Oct 13, 2026
Merged

antobinary merged 1 commit into
antobinary:merge-v4.0.x-release-into-v4.1.x-developfrom
germanocaumo:fix/merge-41-poll-dark-theme

Conversation

@germanocaumo

Copy link
Copy Markdown

What does this PR do?

Fixes three dark-theme regressions that bigbluebutton#26011 brings into 4.1 with the poll and polling panels rebuilt on bbb-ui-components-react. 4.0 still darkens through DarkReader, so the rebuilt panels never had to follow 4.1's native dark theme (theme-dark.css).

  • Question textarea is white on white. The library paints its textarea with --color-neutral-white, which theme-dark.css deliberately leaves white. The panel sets the text to colorText, which is white in the dark theme, so the question you type is invisible. PollQuestionArea now sets background: colorWhiteSurface.
  • Delete-option and stop-poll buttons stay pale blue tiles. They are BBButton variant="tertiary", whose --color-background-blue and --color-hover-light had no dark value. theme-dark.css now emits both, blue-tinted (#1E2B3F at rest, #243552 on hover).
  • White borders on the vote options and the poll/quiz tab selector. They used colorGray and colorGrayLight, which are text colours and turn white in the dark theme. They now use the border splits, colorGrayBorder and colorGrayLightBorder.

The light theme is unchanged: every token used chains back to the previous value there. Computed colours are identical, and a pixel diff of the light-theme screenshots shows only anti-aliasing noise.

Before (dark) After (dark)
Question textarea before after
Delete-option buttons (B hovered) before after
Stop poll before after
Viewer vote options before after

Closes Issue(s)

None. Follow-up to bigbluebutton#26011, targeting its branch.

Motivation

Found while reviewing bigbluebutton#26011. Its follow-ups list mentions the poll panels' dark-theme tokens. These three are the visible breakages, and the textarea one makes the poll question unusable in dark mode.

How to test

  1. Join as a moderator with userdata-bbb_prefer_dark_theme=true, or turn on dark theme in Settings.
  2. Open the poll panel and type a question. The text should be readable on a dark box.
  3. Check that the response-choice delete buttons are dark tiles, and that the Poll/Quiz selector has a grey border.
  4. Start a poll with a viewer joined. The viewer's option boxes should have grey borders and the moderator's "Stop poll" button should be dark.
  5. Repeat in the light theme. Nothing should change there.

More

  • The tertiary button's hover/focus label is --color-hover-dark (#0C57A7). It is a brand token, so theme-dark.css deliberately does not redefine it, and on the dark hover ground it is only about 1.7:1 contrast. "Stop poll" sits in that state right after a poll starts. Fixing that means giving the brand hover colour a dark value, which is a call for the theme's maintainers.
  • colorBlueDark still has no dark override, but it is only used as a fill under white text, which is fine.
  • Added/updated documentation

The v4.0.x-release merge brings in the poll and polling panels rebuilt on
bbb-ui-components-react. 4.0 still darkens through DarkReader, so the new
code never had to follow 4.1's native dark theme, and three spots regress
there:

- The question textarea is the library's, painted with
  --color-neutral-white, which theme-dark.css leaves white on purpose. The
  panel sets the text to colorText, white in the dark theme, so the
  question is typed white on white. Give it colorWhiteSurface.
- The delete-option and stop-poll buttons are BBButton tertiary, whose
  --color-background-blue and --color-hover-light had no dark value, so
  they stayed pale blue tiles. Emit both, blue-tinted like the light pair.
- The vote option boxes and the poll/quiz tab selector are bordered with
  colorGray and colorGrayLight, which turn white in the dark theme because
  they are text colours. Use their border splits, colorGrayBorder and
  colorGrayLightBorder.

The light theme is unchanged: every token used chains back to the
previous value there.
@github-actions

Copy link
Copy Markdown

Thank you for this contribution!
Could you please confirm if you already sent in the signed Contributor License Agreement?
See https://docs.bigbluebutton.org/support/faq.html#why-do-i-need-to-sign-a-contributor-license-agreement-to-contribute-source-code
Thanks in advance!

@antobinary
antobinary merged commit 4251869 into antobinary:merge-v4.0.x-release-into-v4.1.x-develop Oct 13, 2026
33 of 34 checks passed
@antobinary

Copy link
Copy Markdown
Owner

Thank you!

antobinary pushed a commit that referenced this pull request Nov 10, 2026
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.

2 participants