Skip to content

BBButton: disabled state drops the 1px border, so the button shrinks by 2px #97

Closed

Description

@germanocaumo

Describe the bug
A disabled BBButton is 2px narrower and 2px shorter than the same button enabled. When a color has no visible border, the enabled style still reserves a transparent 1px border (styles.ts#L60, and #L66 on hover). The disabled style sets border: none instead (styles.ts#L93, and #L99). The disabled palette has no border color (CSS_COLOR_PROPERTIES_DISABLED.border is false), so every disabled button takes the none branch.

The result: a button changes size whenever it is enabled or disabled, and the layout around it moves.

To Reproduce

  1. Render <BBButton label="Share" onClick={() => {}} /> next to <BBButton label="Share" onClick={() => {}} disabled />.
  2. Compare their boxes. The disabled one is 2px smaller in each direction.

In the BigBlueButton 4.0 client, the full-width Share button in the media-sharing modal is 48px tall while disabled and 50px once it is enabled. Because the modal is anchored at the bottom, its top edge moves 2px as soon as a valid video link is typed.

Expected behavior
The button keeps the same box in both states.

Actual behavior
The disabled button drops its 1px border and shrinks by 2px.

Suggested fix
Keep a transparent border in the disabled branch, in both places:

-      border: ${border ? `1px solid ${border}` : 'none'};
+      border: ${border ? `1px solid ${border}` : '1px solid transparent'};

Unrelated, in the same block: background-color: none (#L92, #L98) isn't valid CSS, so the declaration is dropped. transparent is probably what was meant.

Version

  • @bigbluebutton/bbb-ui-components-react 0.7.0, as used by the BigBlueButton v4.0.x-develop client.
  • Still present on main at 0.8.0 (675f306).
  • Measured in Chromium. The cause is the box model, so it isn't browser-specific.

Activity

  1. self-assigned this
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions