You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BBButton: disabled state drops the 1px border, so the button shrinks by 2px #97
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
Render <BBButton label="Share" onClick={() => {}} /> next to <BBButton label="Share" onClick={() => {}} disabled />.
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:
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.
Activity