Repository navigation
fix(html5): scope the dark modal surface to GenericModal's own portal class - #30
Merged
antobinary merged 2 commits intoOct 26, 2026
Conversation
… class The dark-theme rule from 8b24fc7 painted the modal surface on every portal with the modal-low, modal-medium or modal-high class, on the assumption that only GenericModal sets them. Two cases broke: - Plugins render their own react-modal with those classes too. The pick-random-user plugin (v0.1.1) sets portalClassName="modal-low" and keeps a white card, so the rule painted its last content block #2D2F38 behind grey text. - A GenericModal whose priority is none of the three gets no surface: the "Clear all annotations" confirmation passes priority="0", so its portal is modal-0 and it stayed white with white title and text in dark mode. GenericModal now adds a generic-modal class to its portal and the rule keys off that class only. The confirmation keeps priority="0": it is always mounted, and react-modal keeps the empty portal of a closed modal in the DOM, so as modal-low it would hide every later modal-low portal through the FIFO rule in modals.css (a plugin modal, for one). Checked on a merged build in Chromium against a 4.1 server. Dark theme: the confirmation is #2D2F38, the plugin's content block is transparent again, the settings modal content and footer stay #2D2F38. Light theme: all three unchanged. The dark mode reload test now also checks the settings modal footer.
The automated test cases link to specs on v4.1.x-develop since the merge of v4.0.x-develop, but the introduction still named v4.0.x-develop.
|
Thank you for this contribution! |
antobinary
merged commit Oct 26, 2026
98f1155
into
antobinary:merge-v4.0.x-develop-into-v4.1.x-develop
21 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes two dark-theme regressions in 8b24fc7 ("give library modals the dark surface again") from bigbluebutton#26198. That rule paints the modal surface on
.modal-low,.modal-mediumand.modal-high, on the assumption that only GenericModal sets those portal classes. It doesn't hold in two cases:priority="0", so its GenericModal portal ismodal-0and the rule misses it. The library paints the box with--color-white, which stays white in the dark theme, and the title and question are white too. Only the buttons show.portalClassName="modal-low"and keeps its card#FFF, so.ReactModal__Content > div:last-childpaints its content#2D2F38behind the plugin's grey text.GenericModal now adds a
generic-modalclass to its portal, and the rule keys off that class only. Themodal-*classes and their z-index and FIFO rules are unchanged.The confirmation keeps
priority="0". It is always mounted, and react-modal keeps a closed modal's empty portal in#modals-container. Asmodal-low, it would hide every latermodal-lowportal through the FIFO rule inmodals.css; the plugin modal stopped showing when I tried it.The dark mode reload test now also checks the settings modal footer, which the rule paints too. A second commit fixes the release test plan intro, which still pointed at
v4.0.x-develop. The light theme is unchanged.Closes Issue(s)
None. Follow-up to bigbluebutton#26198, targeting its branch.
Motivation
Found while reviewing bigbluebutton#26198.
How to test
userdata-bbb_prefer_dark_theme=true.pluginManifests, and pick a viewer. The picked-user modal should be a plain white card.More
modal-0portal gets none of the z-index or FIFO rules inmodals.css, and its overlay comes from the library's inline default. That is already the case on v4.0.x-develop and is left as is.