Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTL not working #5972

Open
1 of 3 tasks
alhussien76 opened this issue Mar 6, 2023 · 0 comments
Open
1 of 3 tasks

RTL not working #5972

alhussien76 opened this issue Mar 6, 2023 · 0 comments

Comments

@alhussien76
Copy link

Issue type

Styling

I'm submitting a ... (check one with "x")

  • bug report
  • feature request
  • question about the decisions made in the repository

Issue description

I have used NbThemeModule.forRoot() to change my app to Rtl but it doesn't make any changes.
Current behavior:
nothing happened

Expected behavior:
change the dir attribute in tag its fixed to ltr

Steps to reproduce:

Related code:

insert short code snippets here
export class ThemeModule {
  static forRoot(): ModuleWithProviders<ThemeModule> {
    return {
      ngModule: ThemeModule,
      providers: [
        ...NbThemeModule.forRoot(
          {
            name: 'default',
          },
          [DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME],
          null,
          NbLayoutDirection.RTL
        ).providers,
      ],
    };
  }
}

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular

<!--
   "@nebular/auth": "5.0.0",
    "@nebular/eva-icons": "5.0.0",
    "@nebular/security": "5.0.0",
    "@nebular/theme": "5.0.0",
-->
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

No branches or pull requests

1 participant