Skip to content

Fix #12181 - Improve UI of OIDC login - #12721

Merged
allyoucanmap merged 4 commits into
geosolutions-it:masterfrom
offtherailz:fix_12181
Jul 28, 2026
Merged

allyoucanmap merged 4 commits into
geosolutions-it:masterfrom
offtherailz:fix_12181

Conversation

@offtherailz

@offtherailz offtherailz commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

Description

New style

Normal
image

Multiple

image

Only OIDC

image

This PR includes
Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe: UI enhancement

Issue

What is the current behavior?
#12181

What is the new behavior?
Fix #12181

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@offtherailz offtherailz added this to the 2026.02.01 milestone Jul 23, 2026
@offtherailz offtherailz self-assigned this Jul 23, 2026
@cla-bot cla-bot Bot added the CLA Ready label Jul 23, 2026
@offtherailz offtherailz removed their assignment Jul 23, 2026
@offtherailz
offtherailz marked this pull request as draft July 23, 2026 12:44
@offtherailz
offtherailz requested a review from allyoucanmap July 23, 2026 14:03
@offtherailz
offtherailz marked this pull request as ready for review July 23, 2026 14:07
const logo = imageURL ?? logos[providerName];
const text = title;
return <a style={{margin: 20}} onClick={() => onLogin(provider)}>{logo ? <img src={logo} alt={text} style={{minHeight: 50}} /> : text ?? providerName}</a>;
return <a style={{margin: 20, cursor: 'pointer'}} onClick={() => onLogin(provider)}>{logo ? <img src={logo} alt={text} style={{minHeight: 50}} /> : text ?? providerName}</a>;

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.

I think for the LoginItem it should be better to use the Button component (maybe with a transparent color for the border) because an <a> tag without href is not focusable and it does not provide event visual feedback e.g. hover. To have a similar style we could use:

return (
    <Button
        borderTransparent
        style={{margin: 20}}
        onClick={() => onLogin(provider)}>
        {logo ? <img src={logo} alt={text} style={{minHeight: 50}} /> : text ?? providerName}
    </Button>
);

@offtherailz
offtherailz requested a review from allyoucanmap July 27, 2026 16:05
@allyoucanmap
allyoucanmap merged commit de15511 into geosolutions-it:master Jul 28, 2026
15 checks passed
@offtherailz

Copy link
Copy Markdown
Member Author

Successfully created backport PR for 2026.01.xx:

@allyoucanmap

Copy link
Copy Markdown
Contributor

@ElenaGallo please test this fix on dev, thanks

@offtherailz

Copy link
Copy Markdown
Member Author

Backport failed for 2026.02.xx: couldn't find remote ref 2026.02.xx.
Please ensure that this GitHub repo has a branch named 2026.02.xx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve UI on Login Screen

2 participants