Skip to content

Improve <LanguageSwitcher /> & other components#390

Open
brionmario wants to merge 7 commits intoasgardeo:mainfrom
brionmario:refactor-thunder-flows
Open

Improve <LanguageSwitcher /> & other components#390
brionmario wants to merge 7 commits intoasgardeo:mainfrom
brionmario:refactor-thunder-flows

Conversation

@brionmario
Copy link
Member

@brionmario brionmario commented Mar 6, 2026

Purpose

This pull request introduces several improvements and enhancements across the codebase, focusing on UI component flexibility, language switcher robustness, and icon support. The most significant changes include updating the language switcher behavior for better user experience, adding a new icon, improving image sizing logic in authentication flows, and refining button variant handling.

Language Switcher Improvements:

  • The language switcher now ensures the current language is always included in the options, even if it's not listed in the available languages. This prevents UI inconsistencies when switching languages.
  • The dropdown and its interactions (click, dismiss, role) are now only enabled if there are multiple languages, and the chevron icon is conditionally displayed. This avoids unnecessary UI elements and interactions when only one language is available. [1] [2] [3]

Icon Support:

  • Added a new ArrowRightLeft icon component and registered it in the flowIconRegistry, making it available for use throughout the application. [1] [2] [3]

Authentication Flow Enhancements:

  • Improved image sizing logic in AuthOptionFactory: images within stacked components now receive default sizes unless explicitly overridden, ensuring consistent layout in different contexts. [1] [2] [3]

Button Variant Refactor:

  • Replaced the SOCIAL button variant with OUTLINED in EmbeddedFlowActionVariant, and updated button rendering logic to use the new variant, improving clarity and alignment with design conventions. [1] [2]

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

… switches by resolving labels in their own locale
…for clarity; update SubmitButton and AuthOptionFactory to support new variant; add ArrowRightLeft icon component and register it in flowIconRegistry
…r social providers to improve detection accuracy
@asgardeo-github-bot
Copy link

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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