Skip to content

fix(BBBCheckbox): show the brand color when checked or indeterminate - #121

Merged
Arthurk12 merged 1 commit into
bigbluebutton:developfrom
germanocaumo:fix/checkbox-checked-color
Nov 16, 2026
Merged

Arthurk12 merged 1 commit into
bigbluebutton:developfrom
germanocaumo:fix/checkbox-checked-color

Conversation

@germanocaumo

Copy link
Copy Markdown
Contributor

What does this PR do?

A checked or indeterminate BBBCheckbox now shows the brand color (colorBrand1) instead of MUI's default blue.

  • The color rule doubles its class (&&.Mui-checked), so it wins over MUI's own rule whichever stylesheet is injected later.
  • The indeterminate state gets the same color. It was never styled, so it always showed MUI's blue.
  • A disabled box always shows MUI's disabled color.

Closes Issue(s)

None. Found in bigbluebutton/bigbluebutton#26048.

Motivation

&.Mui-checked is exactly as specific as MUI's .css-….Mui-checked rule, so the stylesheet injected later wins. In the BigBlueButton client, MUI's emotion styles come after the styled-components sheet, so a checked box renders #1976d2.

More

  • Checked in a BigBlueButton 4.0 client (Chromium), with this rule inserted where the library's rule sits in the styled-components sheet:
    • checked: rgb(25, 118, 210) today, rgb(15, 112, 215) (#0F70D7) with this PR;
    • indeterminate: the same change;
    • disabled: stays rgba(0, 0, 0, 0.26).
  • Where the library's rule already won (an app whose emotion styles come first), the checked color doesn't change, but a disabled checked box now turns MUI's disabled grey instead of the brand color.
  • Overriding the checked color from outside now also needs a doubled class (e.g. &&.Mui-checked in styled(BBBCheckbox) or sx), since MUI's color prop and a single-class override no longer win.
  • Added/updated documentation

The color rule, `&.Mui-checked`, is exactly as specific as MUI's own
checked/indeterminate rule, so whichever stylesheet comes later wins. In
BigBlueButton, MUI's emotion styles are injected after the
styled-components sheet, so a checked box shows MUI's default blue
(#1976d2) instead of colorBrand1. The indeterminate state was never
styled, so it always showed MUI's blue.

Double the class so the brand color wins in either order, and apply it
to the indeterminate state too. A disabled box now always shows MUI's
disabled color; where the library's rule used to win, a disabled
checked box was brand-colored.
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 13, 2026
The camera settings' "Whole image" brightness option was the last user
of common/checkbox, and common/radio has no users. They were also the
only code importing @mui/system directly, which kept a 5.x copy at the
top level next to the 6.x one @mui/material uses.

- The option is a BBBCheckbox. Its label names the input, and its
  description stays linked through aria-describedby.
- common/checkbox and common/radio are removed.
- @mui/system is dropped from package.json, so only MUI 6.x remains.

Visible differences, both from the library's look:
- the checked box is blue instead of green. It is MUI's default blue,
  not the brand color, until the client moves to a library release
  with bigbluebutton/bbb-ui-components-react#121;
- the box loses MUI's 9px ripple padding (39px to 21px). The label stays
  clickable.

The old checkbox also toggled on Enter. Like a native checkbox, it now
toggles on Space.
@Arthurk12
Arthurk12 self-requested a review November 13, 2026 23:58
@Arthurk12
Arthurk12 merged commit 85ff479 into bigbluebutton:develop Nov 16, 2026
2 checks passed
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 16, 2026
The camera settings' "Whole image" brightness option was the last user
of common/checkbox, and common/radio has no users. They were also the
only code importing @mui/system directly, which kept a 5.x copy at the
top level next to the 6.x one @mui/material uses.

- The option is a BBBCheckbox. Its label names the input, and its
  description stays linked through aria-describedby.
- common/checkbox and common/radio are removed.
- @mui/system is dropped from package.json, so only MUI 6.x remains.

Visible differences, both from the library's look:
- the checked box is blue instead of green. It is MUI's default blue,
  not the brand color, until the client moves to a library release
  with bigbluebutton/bbb-ui-components-react#121;
- the box loses MUI's 9px ripple padding (39px to 21px). The label stays
  clickable.

The old checkbox also toggled on Enter. Like a native checkbox, it now
toggles on Space.
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 16, 2026
0.11.0 adds BBButton's labelOverflow prop
(bigbluebutton/bbb-ui-components-react#120) and shows BBBCheckbox's
checked box in the brand color
(bigbluebutton/bbb-ui-components-react#121). The next commit uses
labelOverflow.

Visible changes, all from the library:
- the camera settings' "Whole image" checkbox is brand blue when
  checked, shows a focus outline, and dims its label while disabled;
- the poll panel's toggles show a focus outline, and "Allow multiple
  answers per respondent?" is dimmed while it is disabled (typed
  responses);
- a tooltip closes on Escape.

The dependencies and peer dependencies are unchanged, and so are the
other components the client uses (BBBSelect, BBBTextInput,
BBBTextAreaInput, BBBModal and BBBHint).
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 18, 2026
The camera settings' "Whole image" brightness option was the last user
of common/checkbox, and common/radio has no users. They were also the
only code importing @mui/system directly, which kept a 5.x copy at the
top level next to the 6.x one @mui/material uses.

- The option is a BBBCheckbox. Its label names the input, and its
  description stays linked through aria-describedby.
- common/checkbox and common/radio are removed.
- @mui/system is dropped from package.json, so only MUI 6.x remains.

Visible differences, both from the library's look:
- the checked box is blue instead of green. It is MUI's default blue,
  not the brand color, until the client moves to a library release
  with bigbluebutton/bbb-ui-components-react#121;
- the box loses MUI's 9px ripple padding (39px to 21px). The label stays
  clickable.

The old checkbox also toggled on Enter. Like a native checkbox, it now
toggles on Space.
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 18, 2026
0.11.0 adds BBButton's labelOverflow prop
(bigbluebutton/bbb-ui-components-react#120) and shows BBBCheckbox's
checked box in the brand color
(bigbluebutton/bbb-ui-components-react#121). The next commit uses
labelOverflow.

Visible changes, all from the library:
- the camera settings' "Whole image" checkbox is brand blue when
  checked, shows a focus outline, and dims its label while disabled;
- the poll panel's toggles show a focus outline, and "Allow multiple
  answers per respondent?" is dimmed while it is disabled (typed
  responses);
- a tooltip closes on Escape.

The dependencies and peer dependencies are unchanged, and so are the
other components the client uses (BBBSelect, BBBTextInput,
BBBTextAreaInput, BBBModal and BBBHint).
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 23, 2026
The camera settings' "Whole image" brightness option was the last user
of common/checkbox, and common/radio has no users. They were also the
only code importing @mui/system directly, which kept a 5.x copy at the
top level next to the 6.x one @mui/material uses.

- The option is a BBBCheckbox. Its label names the input, and its
  description stays linked through aria-describedby.
- common/checkbox and common/radio are removed.
- @mui/system is dropped from package.json, so only MUI 6.x remains.

Visible differences, both from the library's look:
- the checked box is blue instead of green. It is MUI's default blue,
  not the brand color, until the client moves to a library release
  with bigbluebutton/bbb-ui-components-react#121;
- the box loses MUI's 9px ripple padding (39px to 21px). The label stays
  clickable.

The old checkbox also toggled on Enter. Like a native checkbox, it now
toggles on Space.
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 23, 2026
0.11.0 adds BBButton's labelOverflow prop
(bigbluebutton/bbb-ui-components-react#120) and shows BBBCheckbox's
checked box in the brand color
(bigbluebutton/bbb-ui-components-react#121). The next commit uses
labelOverflow.

Visible changes, all from the library:
- the camera settings' "Whole image" checkbox is brand blue when
  checked, shows a focus outline, and dims its label while disabled;
- the poll panel's toggles show a focus outline, and "Allow multiple
  answers per respondent?" is dimmed while it is disabled (typed
  responses);
- a tooltip closes on Escape.

The dependencies and peer dependencies are unchanged, and so are the
other components the client uses (BBBSelect, BBBTextInput,
BBBTextAreaInput, BBBModal and BBBHint).
antobinary pushed a commit to bigbluebutton/bigbluebutton that referenced this pull request Nov 23, 2026
…bb-ui-components-react to 0.11.0 and drop @mui/system (#26048)

* fix(breakout): keep the room cards' join buttons at their normal height

Since the breakout panels moved to the shared TruncatingButtonWrapper
(701d27a), its `flex: 1 1 10rem` also applies inside the participant
panel's column cards: the "You are in room N" card and each free-join
room card. In a column the 10rem basis is a height, so the Join room and
Ask to join buttons render 140px tall instead of at a normal button
height.

Replace the wrapper with styled(BBButton), now that BBButton forwards
className (bbb-ui-components-react 0.9.0). Both buttons still reach the
label span, since BBButton keeps a label on one line and can't truncate
it yet (bigbluebutton/bbb-ui-components-react#105, #106):

- BottomBarButton, for the bottom-bar rows: the 10rem basis, and a label
  that still doesn't fit ellipsizes. The bottom bars keep the same
  layout.
- CardButton, for the room cards: the label wraps instead of being cut,
  hyphenating a word that doesn't fit where the browser can, so a
  narrow free-join card no longer shows "Ask to j...". The button fills
  its card's spare height, so the buttons of one row of cards stay the
  same height.

The breakout join test now checks that the room card's Join room button
keeps a normal button height.

* refactor(buttons): size BBButtons with fullWidth and styled(BBButton)

bbb-ui-components-react 0.9.0 adds BBButton's fullWidth prop and
forwards className. That makes the remaining wrappers that reach into
BBButton's markup (`> *`, `& > button`, `button { ... }`) unnecessary:

- Timer: the action buttons share their row with `flex: 1` on
  styled(BBButton).
- Poll:
  - The delete-option, add-option and live-result buttons are
    styled(BBButton).
  - Cancel and Start share a two-column grid. A flex basis of 0 would
    count Cancel's padding, which Start's bare wrapper doesn't have.
- Breakout creation and poll Start: the buttons use fullWidth. Their
  wrappers stay as the anchors for the tooltip explaining a disabled
  Start (a disabled BBButton ignores pointer events,
  bigbluebutton/bbb-ui-components-react#125), and no longer size the
  button.
- Breakout join dialog: the close button is sized with styled(BBButton)
  instead of `!important`.
- Request unmute: the confirmation min-width and the label wrapping on
  phones move onto styled(BBButton). The icons are dropped through
  iconStart instead of being hidden with CSS.

common/button-wrapper is no longer used, so it goes away.

The response-type picker keeps its wrapper until BBButton has a pressed
state (bigbluebutton/bbb-ui-components-react#107). The labels that set
white-space keep doing so until it can wrap them (#105).

* refactor(video-preview): use BBBCheckbox and drop @mui/system

The camera settings' "Whole image" brightness option was the last user
of common/checkbox, and common/radio has no users. They were also the
only code importing @mui/system directly, which kept a 5.x copy at the
top level next to the 6.x one @mui/material uses.

- The option is a BBBCheckbox. Its label names the input, and its
  description stays linked through aria-describedby.
- common/checkbox and common/radio are removed.
- @mui/system is dropped from package.json, so only MUI 6.x remains.

Visible differences, both from the library's look:
- the checked box is blue instead of green. It is MUI's default blue,
  not the brand color, until the client moves to a library release
  with bigbluebutton/bbb-ui-components-react#121;
- the box loses MUI's 9px ripple padding (39px to 21px). The label stays
  clickable.

The old checkbox also toggled on Enter. Like a native checkbox, it now
toggles on Space.

* build(html5): bump bbb-ui-components-react to 0.11.0

0.11.0 adds BBButton's labelOverflow prop
(bigbluebutton/bbb-ui-components-react#120) and shows BBBCheckbox's
checked box in the brand color
(bigbluebutton/bbb-ui-components-react#121). The next commit uses
labelOverflow.

Visible changes, all from the library:
- the camera settings' "Whole image" checkbox is brand blue when
  checked, shows a focus outline, and dims its label while disabled;
- the poll panel's toggles show a focus outline, and "Allow multiple
  answers per respondent?" is dimmed while it is disabled (typed
  responses);
- a tooltip closes on Escape.

The dependencies and peer dependencies are unchanged, and so are the
other components the client uses (BBBSelect, BBBTextInput,
BBBTextAreaInput, BBBModal and BBBHint).

* refactor(buttons): wrap and truncate BBButton labels with labelOverflow

bbb-ui-components-react 0.11.0 lets BBButton wrap or truncate its label
(labelOverflow), so the client no longer reaches into the button's
label span or sets white-space on it:

- breakout: the room cards' buttons use labelOverflow="wrap" and the
  bottom-bar buttons labelOverflow="ellipsis". CardButton keeps only
  flex-grow and hyphens, BottomBarButton only its 10rem basis. A
  truncated bottom-bar label now shows the full text in a tooltip.
- request-unmute: on a phone the buttons wrap through labelOverflow
  instead of a media query.
- poll: Add item wraps through labelOverflow instead of
  white-space: pre-wrap.

The layouts are otherwise unchanged.
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