Skip to content

IS-11345 Display configured logo in the Login Web App#204

Merged
aleixsuau merged 7 commits into
integration/IS-5161/login-web-appfrom
fix/integration/IS-5161/login-web-app/IS-11345-display-logos
May 27, 2026
Merged

IS-11345 Display configured logo in the Login Web App#204
aleixsuau merged 7 commits into
integration/IS-5161/login-web-appfrom
fix/integration/IS-5161/login-web-app/IS-11345-display-logos

Conversation

@aleixsuau
Copy link
Copy Markdown
Contributor

@aleixsuau aleixsuau commented May 26, 2026

Jira: https://curity.atlassian.net/browse/IS-11345

Summary

  • Render the configured logo from the LWA bootstrap configuration (theme.logo.path), positioned before or inside the Well based on theme.logo.isInsideWell.
  • New .haapi-stepper-logo CSS reuses the shared --login-logo-* theme tokens, mirroring the legacy .login-logo (200×40px max, object-fit: contain, centered, 1.5rem→5rem top margin).
  • Decorative alt="" + role="presentation".

Apply the patch file to mock BE logo data:
IS-11345-lwa-logo-placeholder.patch

- Render theme.logo.path as <img className="haapi-stepper-logo">,
  positioned before or inside <Well> based on theme.logo.isInsideWell.
- Add .haapi-stepper-logo CSS reusing --login-logo-* theme tokens
  (200px max-width, 40px max-height, object-fit: contain) and mirror
  legacy spacing (1.5rem mobile, 5rem >=576px outside the well, 0 inside).
- Decorative alt="" + role="presentation".
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for displaying a configured theme logo in the Login Web App (LWA) based on bootstrap configuration, with styling aligned to existing --login-logo-* theme tokens.

Changes:

  • Add .haapi-stepper-logo styling (size constraints, centering, responsive spacing) and an inside-well spacing override.
  • Render theme.logo.path as a logo <img> in Layout, positioned inside/outside the well depending on theme.logo.isInsideWell.
  • Extend the LWA bootstrap configuration TypeScript interface with theme.logo fields.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/login-web-app/src/shared/util/css/styles.css Adds .haapi-stepper-logo styles and responsive spacing rules.
src/login-web-app/src/shared/ui/Layout.tsx Renders the configured logo and changes layout structure to include a Well wrapper.
src/login-web-app/src/haapi-stepper/data-access/bootstrap-configuration.ts Extends the bootstrap configuration interface with required theme.logo fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/login-web-app/src/shared/ui/Layout.tsx
Comment thread src/login-web-app/src/shared/ui/Layout.tsx Outdated
Comment on lines +245 to +253
@media (min-width: 576px) {
.haapi-stepper-logo {
margin-top: 5rem;
}
}

.haapi-stepper-well > .haapi-stepper-logo {
margin-block: 0 var(--space-2);
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'll do some adjustments here so the margin top derives a css token instead of this old 5 rem value

@aleixsuau aleixsuau merged commit 78ff304 into integration/IS-5161/login-web-app May 27, 2026
4 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.

5 participants