Skip to content

fix(BBBModal): wrap long titles instead of pushing the close button out - #92

Merged
Arthurk12 merged 2 commits into
bigbluebutton:developfrom
Arthurk12:issue/83
Oct 1, 2026
Merged

Arthurk12 merged 2 commits into
bigbluebutton:developfrom
Arthurk12:issue/83

Conversation

@Arthurk12

Copy link
Copy Markdown
Member

What does this PR do?

  • Makes the BBBModal title shrink and wrap: the title in ModalHeader is now a styled BBBTypography (ModalTitle) with flex: 1, min-width: 0 and overflow-wrap: anywhere. This lets it break long words, so the close button stays inside the modal at any width.
  • Adds a gap to ModalHeader so a wrapped title never touches the close button.
  • Adds a LongTitle Storybook story that uses a title made of one long word with no spaces, the case from the issue.

Closes Issue(s)

Closes #83

The modal title is a flex item sharing the header row with the close
button, and a flex item does not shrink below its longest word. A title
made of one long unbroken word therefore overflows the header, and the
modal clips both the title and the close button. Since
shouldCloseOnEsc and shouldCloseOnOverlayClick default to false, a
modal rendered with noFooter is left with no way to be closed.

Let the title take the remaining space, shrink below its content width
and break anywhere when needed, so it wraps and the close button stays
inside the modal at any width. Add a gap so the wrapped title never
touches the button.

Closes bigbluebutton#83
Add a LongTitle story to exercise the header layout with a title made
of a single long word, which is the case that used to push the close
button out of the modal.
@Arthurk12
Arthurk12 merged commit 8eae55a into bigbluebutton:develop Oct 1, 2026
2 checks passed
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