Repository navigation
Conversation
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.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 4
Please check the settings in the CodeRabbit UI or the
|
germanocaumo
left a comment
There was a problem hiding this comment.
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}; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
The walk now fails if nothing scrolled: a setup that fits the screen would pass without testing anything.
✅ Automated tests have passed! |
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
public.app.preFlight.enabledand join a meeting on a 390×844 window.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.