Skip to content

Commit

Permalink
chore: migrate styles-components from using selectors (#5635)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Vakhramov authored Oct 16, 2023
1 parent b172931 commit 04ebdba
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';

@Component({
selector: 'tui-mobile-tabs',
host: {
class: 'tui-mobile-tabs-styles',
},
template: '',
styleUrls: ['./mobile-tabs.style.less'],
encapsulation: ViewEncapsulation.None,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';

@Component({
selector: 'tui-ripple',
host: {
class: 'tui-ripple-styles',
},
template: '',
styleUrls: ['./ripple.style.less'],
encapsulation: ViewEncapsulation.None,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';

@Component({
selector: 'tui-autofilled-style',
host: {
class: 'tui-autofilled-styles',
},
template: '',
styleUrls: ['./autofilled.style.less'],
encapsulation: ViewEncapsulation.None,
Expand Down
4 changes: 3 additions & 1 deletion projects/core/components/group/group-styles.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';

@Component({
selector: 'tui-group-style',
host: {
class: 'tui-group-styles',
},
template: '',
styleUrls: ['./group.style.less'],
encapsulation: ViewEncapsulation.None,
Expand Down
3 changes: 3 additions & 0 deletions projects/experimental/components/button/button.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import {Observable} from 'rxjs';
import {TUI_BUTTON_OPTIONS, TuiButtonOptions} from './button.options';

@Component({
host: {
class: 'tui-button-styles',
},
template: '',
styleUrls: ['./button.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
3 changes: 3 additions & 0 deletions projects/experimental/directives/fade/fade.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';

@Component({
host: {
class: 'tui-fade-styles',
},
template: '',
styleUrls: ['./fade.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';

@Component({
host: {
class: 'tui-sensitive-styles',
},
changeDetection: ChangeDetectionStrategy.OnPush,
template: '',
styleUrls: ['./sensitive.style.less'],
Expand Down
3 changes: 3 additions & 0 deletions projects/experimental/directives/surface/surface.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';

@Component({
host: {
class: 'tui-surface-styles',
},
template: '',
styleUrls: ['./surface.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down

0 comments on commit 04ebdba

Please sign in to comment.