Skip to content

Commit d520060

Browse files
authored
clarify angular modal class name handling (#28)
1 parent 736d1b8 commit d520060

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui-and-styling.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5832,6 +5832,11 @@ The CSS classes for each application and modal root view are:
58325832
- `.ns-portrait`, `.ns-landscape`, `.ns-unknown` - classes that specify the application orientation
58335833
- `.ns-light`, `.ns-dark` - classes that specify the system appearance.
58345834

5835+
::: tip Note
5836+
In native modals in Angular, the classes are applied to the first layout view in your modal component's HTML. If you are targeting a class that is applied to the root layout in your modal, you would target it with `.ns-dark.your-class`.
5837+
:::
5838+
5839+
58355840
For additional information on the Dark Mode support, refer to [this](https://docs.nativescript.org/ui/dark-mode) documentation article.
58365841

58375842
<!-- TODO: fix links -->

0 commit comments

Comments
 (0)