Skip to content

Commit 871dd56

Browse files
authored
Merge branch 'master' into didimmova/grid-theme-builder
2 parents a134d22 + d822f07 commit 871dd56

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

projects/igniteui-angular/badge/src/badge/badge.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class IgxBadgeComponent {
7777
* Sets/gets the value to be displayed inside the badge.
7878
*
7979
* @remarks
80-
* If an `icon` property is already set the `icon` will be displayed.
8180
* If neither a `value` nor an `icon` is set the content of the badge will be empty.
8281
*
8382
* @example
@@ -92,7 +91,6 @@ export class IgxBadgeComponent {
9291
* Sets/gets an icon for the badge from the material icons set.
9392
*
9493
* @remarks
95-
* Has priority over the `value` property.
9694
* If neither a `value` nor an `icon` is set the content of the badge will be empty.
9795
* Providing an invalid value won't display anything.
9896
*

projects/igniteui-angular/core/src/core/styles/components/badge/_badge-theme.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
border-radius: calc(var(--size) / 2);
2727
box-shadow: var-get($theme, 'elevation');
2828
overflow: hidden;
29+
padding-inline: pad-inline(rem(4px), rem(6px), if($variant == 'indigo', rem(6px), rem(8px)));
30+
gap: rem(2px);
31+
32+
&:has(igx-icon:only-child) {
33+
padding-inline: 0;
34+
}
2935

3036
igx-icon {
3137
--size: var(--ig-icon-size, #{sizable(rem(12px), rem(14px), rem(16px))});
@@ -56,7 +62,6 @@
5662

5763
%igx-badge-value {
5864
white-space: nowrap;
59-
padding-inline: pad-inline(rem(4px), rem(6px), if($variant == 'indigo', rem(6px), rem(8px)));
6065
}
6166

6267
%igx-badge--success {

projects/igniteui-angular/core/src/core/styles/components/chip/_chip-theme.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* stylelint-disable max-nesting-depth */
12
@use 'sass:map';
23
@use '../../base' as *;
34
@use 'igniteui-theming/sass/animations/easings' as *;
@@ -115,7 +116,6 @@
115116
)
116117
);
117118

118-
gap: sizable(rem(3px), rem(6px), rem(8px));
119119
color: var-get($theme, 'text-color');
120120
background: var-get($theme, 'background');
121121
border: $border-size solid var-get($theme, 'border-color');
@@ -410,6 +410,8 @@
410410
}
411411

412412
%igx-chip__start {
413+
gap: sizable(rem(3px), rem(6px), rem(8px));
414+
413415
> igx-avatar,
414416
> igx-circular-bar {
415417
&:first-child {
@@ -437,6 +439,8 @@
437439
}
438440

439441
%igx-chip__end {
442+
gap: sizable(rem(3px), rem(6px), rem(8px));
443+
440444
> igx-avatar,
441445
> igx-circular-bar {
442446
&:last-child {
@@ -490,6 +494,7 @@
490494
%igx-chip__content {
491495
@include ellipsis();
492496

497+
padding-inline: pad-inline(rem(3px), rem(6px), rem(8px));
493498
max-width: $chip-max-width;
494499

495500
&:empty {
@@ -578,7 +583,6 @@
578583

579584
&%igx-chip--primary {
580585
%igx-chip__item {
581-
/* stylelint-disable max-nesting-depth */
582586
@if $theme-variant == 'light' {
583587
color: contrast-color($color: 'primary', $variant: 900, $opacity: .4);
584588
} @else {

projects/igniteui-angular/grids/grid/src/grid-filtering-ui.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,8 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
19951995
GridFunctions.clickFilterCellChip(fix, 'ProductName');
19961996
await wait(300);
19971997

1998-
verifyMultipleChipsVisibility(fix, [true, true, false, false]);
1998+
// NOTE: This test is very sensitive to the width of the grid and the chips.
1999+
verifyMultipleChipsVisibility(fix, [true, false, false, false]);
19992000

20002001
const filterUIRow = fix.debugElement.query(By.css(FILTER_UI_ROW));
20012002
GridFunctions.removeFilterChipByIndex(1, filterUIRow);

0 commit comments

Comments
 (0)