Skip to content

fix(pre-flight): keep focused controls clear of the pinned bar - #26210

Open
AtilaU19 wants to merge 2 commits into
bigbluebutton:v4.1.x-developfrom
AtilaU19:fix/pre-flight-phone-focus
Open

AtilaU19 wants to merge 2 commits into
bigbluebutton:v4.1.x-developfrom
AtilaU19:fix/pre-flight-phone-focus

Conversation

@AtilaU19

@AtilaU19 AtilaU19 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

On a phone, the pre-flight pins the join button to the bottom of the screen. Moving through the setup with Tab could focus a control behind that bar, out of sight.

The page now pads its scrolling at the bottom by the bar's height, so a focused control is scrolled above it. The height lives in one constant, shared with the spacer that reserves the bar's room.

Closes Issue(s)

None

Motivation

Found while reviewing #26180, where the same bar hid the room mode summary's controls; the participant's pre-flight has it too.

How to test

  1. Turn on public.app.preFlight.enabled and join a meeting on a 390×844 window.
  2. Turn the camera on, then press Tab through the setup: every focused control stays above the join bar.

Automated: "Keeps the focused control clear of the pinned bar on a phone" in pre-flight/preFlight.spec.ts (@ci). It fails without the fix (the brightness slider ends up behind the bar) and passes with it.

Changelog

Technical — The phone pre-flight scrolls focused controls clear of the pinned join bar.

User-facing — On phones, keyboard focus in the pre-flight no longer hides behind the join button.

On a phone the pre-flight pins Join to the bottom of the screen.
Moving through the setup with Tab can focus a control that sits
behind that bar, where it cannot be seen.

Pad the page's scrolling at the bottom by the bar's height, so a
focused control is scrolled above it. The height is kept in one
constant, shared with the spacer that reserves the bar's room.
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 4
  • v3.0.x-release
  • v3.0.x-develop
  • v4.0.x-release
  • v4.0.x-develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3f3f2b54-3149-4ea9-89fc-07802ca5dd12

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@AtilaU19
AtilaU19 marked this pull request as ready for review October 23, 2026 19:06

@germanocaumo germanocaumo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked on a dev server: on a 390×844 viewer pre-flight with the camera on, Tab puts the brightness slider behind the join bar without this, and nothing with it. Two small notes inline.

height: 100%;
padding: 0;
/* Focus moved by Tab is scrolled clear of the pinned bar. */
scroll-padding-bottom: ${PHONE_ACTION_BAR_HEIGHT};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heads-up: this conflicts with #26113, which moves these phone rules from @media smallOnly to [data-phone-layout] (a tablet with the room mode panel gets the pinned bar too). Whichever lands second should move this under &${PHONE_LAYOUT} so the tablet layout gets it as well.

@AtilaU19 AtilaU19 Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Neither has landed yet, so whichever goes second moves the rule: if #26113 merges first, this PR rebases and puts the scroll-padding-bottom under &${PHONE_LAYOUT}, so the tablet layout with the room mode panel gets it too; if this one goes first, #26113 carries it over when it moves the phone rules.

// With the camera on, the setup is taller than the screen.
await this.enableCamera();

for (let step = 0; step < 20; step += 1) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing checks that a control actually needed scrolling, so if the setup ever fits the screen this passes without testing anything. Asserting that the page scrolled at least once during the walk would keep it honest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in b52913c711: each step also reads how far the focused control's scrolling ancestors (or the page) have moved, and the case fails if nothing scrolled during the walk. It passes 3/3 locally.

@antobinary antobinary added this to the Release 4.1 milestone Oct 26, 2026
The walk now fails if nothing scrolled: a setup that fits the screen would pass without testing anything.
@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

This branch has not been deployed

No deployments
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.

3 participants