Repository navigation
fix(html5): accessible colours for the connection and timer indicators - #26312
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe palette changes warning colors and adds tokens for warning text, good connection status, and running and stopped timers. Connection-status, poll, and timer styles use the updated tokens. Grayscale signal bars use Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
372f6c0 to
312521e
Compare
colorWarning fell back to `purple`. Default it to #FFC845 and draw warning buttons and toasts with #393C48, since white on that yellow is 1.54:1. The poll's custom-input warning moves to noticeWarningText, which stays readable on the light panel.
Use the design-system colours: good #0F9821, unstable #FFC845 with a dark icon, critical in the danger red. The navbar button and the modal's status circle match.
A stopped timer was red, next to the red leave button. Draw it #393C48 when stopped and #1D65D4 while running.
312521e to
5b69f77
Compare
⏳ Automated tests are running... |
789bf13
into
bigbluebutton:v4.0.x-develop
Forward-merge of v4.0.x-develop at 112214e into v4.1.x-develop at 1635133. Merge base 28d54de (#26257, merged in #26442). Resolutions: - profile-settings/component.tsx: combined. 4.1's PreviewStatus replaced the inline containerStyle, so it stays out; 4.0's isCamLocked return and "Enable webcam" placeholder (#26213) go before 4.1's CameraPreview. - profile-settings/styles.ts: 4.1's palette imports plus colorOffWhite, which 4.0's placeholder uses. - recording/styles.js: 4.1's colorTextEmphasis with 4.0's confirmationButtonFloor (#26314). - request-unmute-modal/styles.js: stays deleted, as on 4.1. 4.1's shared media-consent-modal (f75c010) replaced the RequestModalContent row that 4.0's min-width and narrow-phone change (#26314) styles. - settings/container.jsx: combined. 4.0's pagination source and useIsPaginationToggleAllowed (#26468) in 4.1's useSettingsProps, and paginationToggleLocked in its returned props, so the pre-flight settings modal gets it too. - settings/submenus/application/styles.js: 4.0's. The language selector is now a BBBSelect (#26389), so the native select rule 4.1 recoloured has no target. - video-preview/hooks/types.ts, useVideoPreview.ts: combined. Both sides' options (skipPreview, deferInitialization; waitForCameraPermission). 4.0 moved the mount-time camera opening from the cameraDisabled effect into startPreview, called on mount, and the effect now reopens only a started preview. 4.1's deferInitialization check moves with it, from the effect into startPreview, so pre-flight still opens no camera until the user enables it. - palette.js: combined. 4.0's colorWarning #FFC845 and btnWarningColor #393C48 (#26312) and its new status tokens; 4.1's notice, scrim and *ColorSurface tokens. - locales de, eu, it_IT: 4.1's, as in #26011, #26198, #26346 and #26442. en.json: both sides' strings; a key-level three-way check matches. - playwright core/helpers.ts: 4.0's override-aware create defaults (#26359) with 4.1's encoded name and meetingID. - bigbluebutton.properties, docs/data/create.tsx: both disabledFeatures entries, layoutView (4.1) and lockSettings (4.0). - docs configuration-files.md, release-testing.md: still CRLF on 4.0 and LF on 4.1; merged with line endings normalised. 4.1's bbb-export-annotations override row stays (4.1 ships the override); 4.0's other override rows and nginx text, with the 4.1 source link; the new unmute case with its spec link on v4.1.x-develop. - docs customize.md: 4.0's locale override steps, downloading from v4.1.x-release. - docs new-features.md: 4.1's file, unchanged. - bbb-shared-notes-server/run-in-systemd.sh: kept, as on 4.1. 4.0 deleted it (#26464), but 4.1's image (bbb-shared-notes-server/Dockerfile) still copies it. The follow-up "build(docker): stop copying the removed run-in-systemd.sh into the shared-notes image" removes both. This merge does not pass the Playwright type check alone: bigbluebutton-tests/playwright/core/elements.ts merged without a conflict but declares layoutContainer twice, since both lines added it (4.1 in c5c2c71, 4.0 in ad12223). The next commit, "test(playwright): declare the layoutContainer selector once", drops 4.1's copy. The packages build, and Playwright's own transpiler runs the suite as is. # Conflicts: # bigbluebutton-html5/imports/ui/components/profile-settings/component.tsx # bigbluebutton-html5/imports/ui/components/profile-settings/styles.ts # bigbluebutton-html5/imports/ui/components/recording/styles.js # bigbluebutton-html5/imports/ui/components/request-unmute-modal/styles.js # bigbluebutton-html5/imports/ui/components/settings/container.jsx # bigbluebutton-html5/imports/ui/components/settings/submenus/application/styles.js # bigbluebutton-html5/imports/ui/components/video-preview/hooks/types.ts # bigbluebutton-html5/imports/ui/components/video-preview/hooks/useVideoPreview.ts # bigbluebutton-html5/imports/ui/stylesheets/styled-components/palette.js # bigbluebutton-html5/public/locales/de.json # bigbluebutton-html5/public/locales/en.json # bigbluebutton-html5/public/locales/eu.json # bigbluebutton-html5/public/locales/it_IT.json # bigbluebutton-tests/playwright/core/helpers.ts # bigbluebutton-web/grails-app/conf/bigbluebutton.properties # docs/docs/administration/configuration-files.md # docs/docs/administration/customize.md # docs/docs/data/create.tsx # docs/docs/new-features.md # docs/docs/testing/release-testing.md
4.0 gave colorWarning a real value, #FFC845, and moved the text on it from white to #393C48 for warning buttons (btnWarningColor) and toasts (toastWarningColor), since white on that yellow is 1.54:1 (dba80f1, #26312). The connection status icons draw the button pair for an unstable connection (12ab207). The dark theme leaves --color-warning to the brand, so the yellow stays, but it set --btn-warning-color and --toast-warning-color to #FFFFFF, its parity values for the old white text: after the merge of v4.0.x-develop, warning buttons, the warning toast icon and the unstable connection icon were white on yellow again. Use the light theme's #393C48, 7.11:1 on the yellow.
What does this PR do?
Fixes the colours of the top-right status indicators so they meet WCAG AA contrast and no longer look like the leave button.
In detail:
colorWarningfell back topurple. It now defaults to #FFC845, and warning buttons and toasts use #393C48 text, since white on that yellow is 1.54:1. The poll's custom-input warning uses a newnoticeWarningTexttoken (#936800), readable on the panel.The leave button is unchanged.
Closes Issue(s)
None.
How to test
/rtt-checkresponses) to move through the levels. Expect green with four white bars, then green with three, then yellow with dark bars and two full bars, then red with one full bar.E2E, run locally on the LiveKit bridge on v4.1.x-develop (before this PR was moved to 4.0) and before the four-bar follow-up, all green:
connectionStatus/connectionStatus.spec.ts(5 tests) anduser/user.spec.tsStopwatch, Timer and "Timer countdown for the attendee".Screenshots
Connection: good

Connection: unstable

Connection: critical

Timer: stopped

Timer: running

Changelog
Technical — Real default for
colorWarning, dark text on warning surfaces, new connection indicator and timer colours, with--connection-status-good-bg,--timer-stopped-bg,--timer-running-bgand--notice-warning-textto theme them.User-facing — The connection indicator is green, yellow or red by connection quality, and the timer turns grey when stopped and blue while running, so it no longer looks like the leave button.