Skip to content
Merged
5 changes: 2 additions & 3 deletions src/base-container/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';

import { getConfig } from '@edx/frontend-platform';
import { breakpoints } from '@openedx/paragon';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import MediaQuery from 'react-responsive';

Expand Down Expand Up @@ -30,7 +29,7 @@ const BaseContainer = ({ children, showWelcomeBanner, fullName }) => {
<MediaQuery minWidth={breakpoints.extraLarge.minWidth}>
{showWelcomeBanner ? <AuthLargeLayout fullName={fullName} /> : <ImageLargeLayout />}
</MediaQuery>
<div className={classNames('content', { 'align-items-center mt-0': showWelcomeBanner })}>
<div className="content">
{children}
</div>
Comment on lines +32 to 34
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

This change removes the showWelcomeBanner-specific spacing/alignment classes from the shared BaseContainer. BaseContainer is also used outside the Register/Sign-in flows (e.g., ProgressiveProfiling passes showWelcomeBanner), so this will change layout in those screens too; please confirm this is intended or scope the styling change to only the logistration pages (e.g., via a dedicated prop or wrapper class).

Copilot uses AI. Check for mistakes.
</div>
Expand All @@ -50,7 +49,7 @@ const BaseContainer = ({ children, showWelcomeBanner, fullName }) => {
<MediaQuery minWidth={breakpoints.extraLarge.minWidth}>
{showWelcomeBanner ? <AuthLargeLayout fullName={fullName} /> : <DefaultLargeLayout />}
</MediaQuery>
<div className={classNames('content', { 'align-items-center mt-0': showWelcomeBanner })}>
<div className="content">
{children}
</div>
Comment on lines +52 to 54
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

BaseContainer has unit tests, but none cover the showWelcomeBanner=true case that this PR changes (previously additional utility classes were applied). Consider adding a test that renders BaseContainer with showWelcomeBanner and asserts the resulting .content classes/structure so unintended layout regressions are caught.

Copilot uses AI. Check for mistakes.
</div>
Expand Down
Loading