ngx-admin icon indicating copy to clipboard operation
ngx-admin copied to clipboard

RTL not working

Open alhussien76 opened this issue 2 years ago • 0 comments

Issue type

Styling

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

  • [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",
-->

alhussien76 avatar Mar 06 '23 13:03 alhussien76