Skip to content

fix(BBButton): make size resize circle and squared layouts - #78

Merged
Arthurk12 merged 1 commit into
bigbluebutton:developfrom
Arthurk12:issue/74
Sep 19, 2026
Merged

Arthurk12 merged 1 commit into
bigbluebutton:developfrom
Arthurk12:issue/74

Conversation

@Arthurk12

Copy link
Copy Markdown
Member

What does this PR do?

circle hardcoded a 3rem width/height regardless of size, and squared hardcoded its padding, overriding the size-derived padding from commonButtonStyles — both contradicted the size doc, which claims it affects padding and the circle's diameter.

Add a shared iconBoxSize per size to CSS_SIZE_PROPERTIES and an iconOnlyBoxStyles fragment reused by both layouts, so circle and squared always render at the same fixed box size for a given size (sm: 2rem, md: 3rem, the latter promoted to a new spacingXXLarge token to match the previous circle default). This changes squared's default look: it no longer sizes itself from icon + padding, and now matches circle's box size instead.

Closes Issue(s)

Closes #74

`circle` hardcoded a 3rem width/height regardless of `size`, and
`squared` hardcoded its padding, overriding the size-derived padding
from commonButtonStyles — both contradicted the `size` doc, which
claims it affects padding and the circle's diameter.

Add a shared `iconBoxSize` per size to CSS_SIZE_PROPERTIES and an
`iconOnlyBoxStyles` fragment reused by both layouts, so `circle` and
`squared` always render at the same fixed box size for a given `size`
(sm: 2rem, md: 3rem, the latter promoted to a new `spacingXXLarge`
token to match the previous circle default). This changes squared's
default look: it no longer sizes itself from icon + padding, and now
matches circle's box size instead.
@Arthurk12
Arthurk12 merged commit 7cda9b6 into bigbluebutton:develop Sep 19, 2026
2 checks passed
@Arthurk12
Arthurk12 deleted the issue/74 branch September 19, 2026 13:07
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.

1 participant