Skip to content

Commit 99639da

Browse files
refactor(toolbar): to use absolute position so the buttons are allays in the view. (#12349)
Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent 52c3341 commit 99639da

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

projects/igniteui-angular/src/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@
121121
);
122122

123123
%igx-grid-toolbar {
124+
position: absolute;
125+
width: 100%;
124126
display: flex;
125127
align-items: center;
126128
justify-content: space-between;
@@ -136,7 +138,6 @@
136138
background: var-get($theme, 'background-color');
137139
height: auto;
138140
min-height: map.get($grid-toolbar-height, 'comfortable');
139-
position: relative;
140141
padding-block: 0;
141142
padding-inline: map.get($grid-toolbar-padding, 'comfortable');
142143

@@ -164,15 +165,24 @@
164165
}
165166
}
166167
}
168+
169+
+ igx-grid-header-row {
170+
margin-top: map.get($grid-toolbar-height, 'comfortable');
171+
}
167172
}
168173

174+
169175
%igx-grid-toolbar--cosy {
170176
min-height: map.get($grid-toolbar-height, 'cosy');
171177
padding-inline: map.get($grid-toolbar-padding, 'cosy');
172178

173179
[igxButton] {
174180
margin-inline-start: map.get($grid-toolbar-spacer, 'cosy');
175181
}
182+
183+
+ igx-grid-header-row {
184+
margin-top: map.get($grid-toolbar-height, 'cosy');
185+
}
176186
}
177187

178188
%igx-grid-toolbar--compact {
@@ -182,6 +192,10 @@
182192
[igxButton] {
183193
margin-inline-start: map.get($grid-toolbar-spacer, 'compact');
184194
}
195+
196+
+ igx-grid-header-row {
197+
margin-top: map.get($grid-toolbar-height, 'compact');
198+
}
185199
}
186200

187201
%igx-grid-toolbar__title {

0 commit comments

Comments
 (0)