Skip to content

Commit e6a763a

Browse files
authored
Merge pull request #1033 from IgniteUI/styling-regression-fixes
fix(themes): fixes regression issues in various component themes
2 parents 5801cfb + f18406c commit e6a763a

File tree

9 files changed

+26
-48
lines changed

9 files changed

+26
-48
lines changed

Diff for: demos/app/list-performance/sample.component.css

+8-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
height: 34px;
66
}
77

8-
.item > [igxLabel],
9-
.item > .person {
8+
.item>[igxLabel],
9+
.item>.person {
1010
position: absolute;
1111
margin-left: 72px;
1212
}
@@ -22,4 +22,9 @@
2222
.item .delete-item:hover {
2323
color: crimson;
2424
cursor: pointer;
25-
}
25+
}
26+
27+
.virtualized-items {
28+
position: relative;
29+
overflow: hidden;
30+
}

Diff for: demos/app/list-performance/sample.component.html

+12-14
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ <h4 class="sample-title">Performance sample</h4>
1212
</igx-suffix>
1313
</igx-input-group>
1414

15-
<div class="list-sample">
16-
<igx-list>
17-
<igx-list-item [isHeader]="true">Contacts</igx-list-item>
18-
<div [style.height]="'518px'">
19-
<igx-list-item igxRipple="pink" igxRippleTarget=".igx-list__item" *igxFor="let item of data | igxFilter: fo1; scrollOrientation : 'vertical'; containerSize: '500px'; itemSize: '50px'">
20-
<div class="item">
21-
<igx-avatar [src]="item.avatar" roundShape="true"></igx-avatar>
22-
<span igxLabel>{{item.text}}</span>
23-
<igx-icon name="star" [class.favorite]="item.favorite"></igx-icon>
24-
</div>
25-
</igx-list-item>
26-
</div>
27-
</igx-list>
28-
</div>
15+
<igx-list>
16+
<igx-list-item [isHeader]="true">Contacts</igx-list-item>
17+
<div class="virtualized-items">
18+
<igx-list-item igxRipple="pink" igxRippleTarget=".igx-list__item" *igxFor="let item of data | igxFilter: fo1; scrollOrientation : 'vertical'; containerSize: '500px'; itemSize: '50px'">
19+
<div class="item">
20+
<igx-avatar [src]="item.avatar" roundShape="true"></igx-avatar>
21+
<span igxLabel>{{item.text}}</span>
22+
<igx-icon name="star" [class.favorite]="item.favorite"></igx-icon>
23+
</div>
24+
</igx-list-item>
25+
</div>
26+
</igx-list>
2927

3028
</article>
3129
</div>

Diff for: src/core/styles/base/_normalize.scss

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ html input[disabled] {
3535
cursor: default;
3636
}
3737

38-
button,
3938
input[type='number']::-webkit-outer-spin-button {
4039
height: auto;
4140
}

Diff for: src/core/styles/components/_common/_igx-display-container.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
%display-container {
22
display: inherit;
33
position: relative;
4-
float: left;
54
width: calc(100% - 18px);
65
overflow: hidden;
76
}

Diff for: src/core/styles/components/_common/_igx-vhelper.scss

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
%vhelper--vertical {
77
position: absolute;
88
width: 18px;
9+
top: 0;
910
right: 0;
1011
}
1112

Diff for: src/core/styles/components/checkbox/_checkbox-theme.scss

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
cursor: pointer;
109109
width: $size;
110110
height: $size;
111+
min-width: $size;
111112
border-width: $border-width;
112113
border-style: solid;
113114
border-color: map-get($this, 'empty-color');

Diff for: src/core/styles/components/grid/_grid-theme.scss

+2-29
Original file line numberDiff line numberDiff line change
@@ -156,32 +156,6 @@
156156
overflow: hidden;
157157
}
158158

159-
%vhelper-display {
160-
&::-webkit-scrollbar {
161-
background: rgba(text-contrast(map-get($this, 'content-background')), .12);
162-
163-
/* stylelint-disable selector-pseudo-class-no-unknown */
164-
&:vertical {
165-
border-left: 1px solid rgba(text-contrast(map-get($this, 'content-background')), .08);
166-
border-right: 1px solid rgba(text-contrast(map-get($this, 'content-background')), .08);
167-
}
168-
169-
&:horizontal {
170-
border-top: 1px solid rgba(text-contrast(map-get($this, 'content-background')), .08);
171-
border-bottom: 1px solid rgba(text-contrast(map-get($this, 'content-background')), .08);
172-
}
173-
/* stylelint-enable */
174-
}
175-
176-
&::-webkit-scrollbar-thumb {
177-
background: rgba(text-contrast(map-get($this, 'content-background')), .24);
178-
179-
&:hover {
180-
background: rgba(text-contrast(map-get($this, 'content-background')), .37);
181-
}
182-
}
183-
}
184-
185159
%grid-caption {
186160
display: flex;
187161
align-items: center;
@@ -258,7 +232,6 @@
258232
background: map-get($this, 'content-background');
259233
color: map-get($this, 'content-text-color');
260234
overflow: hidden;
261-
will-change: transform;
262235
}
263236

264237
%grid-tbody--empty {
@@ -272,11 +245,11 @@
272245
flex-flow: row nowrap;
273246
grid-row: 5;
274247
width: 100%;
275-
background: map-get($this, 'content-background');
248+
background: map-get($this, 'header-background');
276249
}
277250

278251
%grid-scroll-start {
279-
border-right: map-get($cell-pin, 'style') map-get($cell-pin, 'color');
252+
background: igx-color($palette, 'grays', 200);
280253
}
281254

282255
%grid-scroll-main {

Diff for: src/core/styles/components/radio/_radio-theme.scss

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
display: inline-block;
9999
width: $size;
100100
height: $size;
101+
min-width: $size;
101102
line-height: $size;
102103
cursor: pointer;
103104
color: map-get($this, 'label-color');

Diff for: src/core/styles/components/switch/_switch-theme.scss

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
display: block;
159159
width: $switch-thumb-width;
160160
height: $switch-thumb-height;
161+
min-width: $switch-thumb-width;
161162
border-radius: 50%;
162163
background: map-get($this, 'thumb-off-color');
163164
box-shadow: $switch-shadow;

0 commit comments

Comments
 (0)