Skip to content

Commit 46cd79c

Browse files
authored
fix(navbar): update icon button and icon sizes (#16431)
1 parent 4806305 commit 46cd79c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

projects/igniteui-angular/src/lib/core/styles/components/navbar/_navbar-theme.scss

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
igx-input-group {
3939
--ig-size: 1;
4040
}
41+
42+
.igx-icon-button,
43+
igc-icon-button {
44+
--ig-size: 2;
45+
}
4146
}
4247

4348
@if $variant == 'bootstrap' {
@@ -114,30 +119,27 @@
114119

115120
igx-icon,
116121
igc-icon {
117-
--component-size: 3;
122+
--component-size: #{if($variant == 'indigo', 2, 3)};
118123

119124
cursor: pointer;
120125
user-select: none;
121126
transition: color .15s $out-quad;
127+
128+
@if $variant == 'indigo' {
129+
width: auto;
130+
height: auto;
131+
padding: rem(6px);
132+
}
122133
}
123134

124-
>igx-icon,
125-
>igc-icon {
135+
> igx-icon,
136+
> igc-icon {
126137
color: var-get($theme, 'idle-icon-color');
127138

128139
&:hover {
129140
color: var-get($theme, 'hover-icon-color');
130141
}
131142
}
132-
133-
@if $variant == 'indigo' {
134-
igx-icon,
135-
igc-icon {
136-
--component-size: 2;
137-
138-
margin-inline: rem(6px);
139-
}
140-
}
141143
}
142144

143145
igx-navbar-action,

0 commit comments

Comments
 (0)