Skip to content

Commit bf0ff64

Browse files
committed
feat: nativeEncapsulation demo + comments
1 parent 63255f9 commit bf0ff64

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/app/styling/native-encapsulation/native-encapsulation.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
1616
text-align: center;
1717
margin-bottom: 20px;
1818
}
19+
/* the following class from the root styles.scss file is not accessible due to native encapsulation and is shown here as an effective inline styling solution */
20+
h4.ui.header {
21+
font-family: Arial, Helvetica, sans-serif;
22+
}
1923
`,
2024
],
2125
styleUrls: ['../../../assets/vendor/semantic.min.css'],

src/assets/vendor/semantic.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)