Skip to content

Conversation

d3varaja
Copy link

@d3varaja d3varaja commented Oct 15, 2025

Introduces a new useRTL React hook to detect right-to-left (RTL) text direction and enhance component compatibility for RTL layouts.
Updates components and styles to use logical CSS properties for consistent behavior across LTR and RTL contexts.
Adds test coverage for the useRTL hook and verifies RTL functionality in BaseOrganizationSwitcher.
Exports the new hook in the React package for developer use.


Purpose

Provide consistent right-to-left language support across Asgardeo React components and enable dynamic RTL detection through a reusable hook.


Related Issues

N/A


Related PRs

N/A


Checklist


Security Checks


Package Affected

  • @asgardeo/react

Changeset

---
'@asgardeo/react': minor
---

Add RTL support and `useRTL` hook for React package to enhance layout direction handling and improve accessibility for right-to-left languages.

Introduces a new useRTL hook for detecting right-to-left (RTL) text direction and updates components and styles to use logical CSS properties for RTL compatibility. Adds tests for the useRTL hook and RTL support in BaseOrganizationSwitcher. Updates exports to include useRTL.
@d3varaja d3varaja changed the title Add RTL support and useRTL hook to React package feat(react): add RTL support and useRTL hook Oct 15, 2025
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.

1 participant