File tree Expand file tree Collapse file tree 6 files changed +41
-32
lines changed
projects/igniteui-angular/src/lib
core/styles/components/icon-button Expand file tree Collapse file tree 6 files changed +41
-32
lines changed Original file line number Diff line number Diff line change 177
177
);
178
178
179
179
igx-icon {
180
- // TODO: Why do we have to comment these out?
181
- // --component-size: var(--ig-size, var(--ig-size-large));
182
- // --size: var(--igx-icon-size, #{$icon-in-button-size});
183
-
184
180
--ig-size : #{if ($variant == ' indigo' , 2 , 1 )} ;
185
181
186
182
display : flex ;
Original file line number Diff line number Diff line change 1
- < nav class =" igx-navbar " role ="navigation " [attr.aria-labelledby] ="titleId ">
1
+ < nav role ="navigation " [attr.aria-labelledby] ="titleId ">
2
2
< div class ="igx-navbar__left ">
3
3
@if (isActionButtonVisible) {
4
4
< igx-icon (click) ="_triggerAction() ">
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ let NEXT_ID = 0;
48
48
@Component ( {
49
49
selector : 'igx-navbar' ,
50
50
templateUrl : 'navbar.component.html' ,
51
- styles : [ `
52
- :host {
53
- display: block;
54
- width: 100%;
55
- }
56
- `
57
- ] ,
58
51
styleUrl : 'navbar.component.css' ,
59
52
encapsulation : ViewEncapsulation . None ,
60
53
imports : [ IgxIconComponent ]
@@ -71,6 +64,14 @@ export class IgxNavbarComponent {
71
64
@Input ( )
72
65
public id = `igx-navbar-${ NEXT_ID ++ } ` ;
73
66
67
+ /**
68
+ * @hidden
69
+ * @internal
70
+ */
71
+ @HostBinding ( 'class.igx-navbar' )
72
+ public cssClass = 'igx-navbar' ;
73
+
74
+
74
75
/**
75
76
* Sets the icon of the `IgxNavbarComponent`.
76
77
* ```html
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ $_theme: $material;
24
24
25
25
igx-icon ,
26
26
igc-icon {
27
- --component-size : 3 ;
27
+ --component-size : var ( --ig-size , var ( --ig-size-large )) ;
28
28
cursor : pointer ;
29
29
}
30
30
@@ -55,29 +55,28 @@ $_theme: $material;
55
55
}
56
56
57
57
@include b (igx- navbar) {
58
- display : flex ;
59
- align-items : center ;
60
- position : relative ;
61
- flex-flow : row nowrap ;
62
- gap : rem (16px );
58
+ display : block ;
63
59
width : 100% ;
64
- min-height : rem (56px );
65
- max-height : rem (128px );
66
- padding-inline : rem (16px );
67
60
background : var-get ($_theme , ' background' );
68
61
color : var-get ($_theme , ' text-color' );
69
62
box-shadow : var-get ($_theme , ' elevation' );
70
- z-index : 4 ;
71
- overflow : hidden ;
72
- border-bottom : rem (1px ) solid var-get ($_theme , ' border-color' );
73
63
74
- igx-avatar {
75
- --ig-size : 1 ;
64
+ nav {
65
+ display : flex ;
66
+ align-items : center ;
67
+ position : relative ;
68
+ flex-flow : row nowrap ;
69
+ gap : rem (16px );
70
+ min-height : rem (56px );
71
+ padding-inline : rem (16px );
72
+ max-height : rem (128px );
73
+ z-index : 4 ;
74
+ overflow : hidden ;
75
+ border-bottom : rem (1px ) solid var-get ($_theme , ' border-color' );
76
76
}
77
77
78
- [igxButton ],
79
- [igxIconButton ] {
80
- --ig-size : 2 ;
78
+ igx-avatar {
79
+ --ig-size : 1 ;
81
80
}
82
81
83
82
@include e (title) {
Original file line number Diff line number Diff line change 3
3
@use ' styles/themes/standalone' as * ;
4
4
5
5
@include themed-block (igx- navbar, bootstrap) {
6
+ [igxButton ],
7
+ [igxIconButton ] {
8
+ --ig-size : 2 ;
9
+ }
10
+
6
11
@include e (title) {
7
- @include type-style (h5);
12
+ @include type-style (h5) {
13
+ margin : 0 ;
14
+ };
8
15
}
9
16
10
17
igx-navbar-title ,
11
18
[igxNavbarTitle ] {
12
- @include type-style (h5);
19
+ @include type-style (h5) {
20
+ margin : 0 ;
21
+ };
13
22
}
14
23
}
Original file line number Diff line number Diff line change 6
6
%icon-size {
7
7
igx-icon ,
8
8
igc-icon {
9
- --component-size : 2 ;
9
+ --component-size : var ( --ig-size , var ( --ig-size-medium )) ;
10
10
11
11
margin-inline : rem (6px );
12
12
}
16
16
--ig-size : 2 ;
17
17
}
18
18
19
+ [igxIconButton ] {
20
+ --ig-size : 2 ;
21
+ }
22
+
19
23
igx-navbar-title ,
20
24
[igxNavbarTitle ] {
21
25
@include type-style (h5);
You can’t perform that action at this time.
0 commit comments