Skip to content

Commit 05209df

Browse files
committed
Merge branch 'master' into simeonoff/scoped-styles
2 parents 5e4e122 + ecfcb2d commit 05209df

File tree

13 files changed

+177
-98
lines changed

13 files changed

+177
-98
lines changed

package-lock.json

Lines changed: 73 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"gulp-uglify": "^3.0.1",
122122
"hammer-simulator": "0.0.1",
123123
"hammerjs": "^2.0.8",
124-
"ig-typedoc-theme": "^6.0.0",
124+
"ig-typedoc-theme": "^7.0.0",
125125
"igniteui-dockmanager": "^1.17.0",
126126
"igniteui-sassdoc-theme": "^2.1.0",
127127
"igniteui-webcomponents": "6.3.4",
@@ -150,8 +150,8 @@
150150
"stylelint-prettier": "^5.0.2",
151151
"stylelint-scss": "^6.9.0",
152152
"ts-node": "^10.8.1",
153-
"typedoc": "^0.27.0",
154-
"typedoc-plugin-localization": "^3.0.6",
153+
"typedoc": "^0.28.14",
154+
"typedoc-plugin-localization": "^3.1.0",
155155
"typescript": "5.8.3"
156156
}
157157
}

projects/igniteui-angular/src/lib/core/styles/components/combo/_combo-theme.scss

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,24 @@
210210
color: var-get($theme, 'clear-button-foreground-focus');
211211
background: var-get($theme, 'clear-button-background-focus');
212212
}
213+
214+
&%form-group-bundle--border {
215+
%igx-combo__toggle-button {
216+
background: var-get($theme, 'toggle-button-background-focus--border');
217+
}
218+
}
213219
}
214220

215221
@if $variant == 'indigo' {
216222
%form-group-bundle:not(%form-group-bundle--disabled):hover {
217223
%igx-combo__toggle-button {
218224
color: var-get($theme, 'toggle-button-foreground-focus');
225+
background: var-get($theme, 'toggle-button-background-focus');
226+
}
227+
228+
%igx-combo__clear-button {
229+
color: var-get($theme, 'clear-button-foreground-focus');
230+
background: var-get($theme, 'clear-button-background-focus');
219231
}
220232
}
221233
}
@@ -224,6 +236,14 @@
224236
%igx-combo__toggle-button {
225237
color: var-get($theme, 'toggle-button-foreground-filled');
226238
}
239+
240+
@if $variant == 'material' {
241+
&.igx-input-group--focused {
242+
%igx-combo__toggle-button {
243+
color: var-get($theme, 'toggle-button-foreground-filled');
244+
}
245+
}
246+
}
227247
}
228248

229249
.igx-input-group--focused {
@@ -254,14 +274,6 @@
254274
}
255275
}
256276

257-
//.igx-input-group:not(.igx-input-group--box) {
258-
// %igx-combo__toggle-button:focus {
259-
// @if $variant == 'material' {
260-
// background: var-get($theme, 'toggle-button-background-focus--border');
261-
// }
262-
// }
263-
//}
264-
265277
.igx-input-group--disabled {
266278
%igx-combo__toggle-button {
267279
background: var-get($theme, 'toggle-button-background-disabled') !important;
@@ -274,12 +286,4 @@
274286
}
275287
}
276288
}
277-
278-
%form-group-bundle {
279-
&:hover {
280-
%igx-combo__clear-button {
281-
color: inherit;
282-
}
283-
}
284-
}
285289
}

projects/igniteui-angular/src/lib/core/styles/components/list/_list-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@
229229
display: none;
230230
}
231231

232-
> * {
232+
> *,
233+
[class^='igx'] {
233234
--component-size: #{if($variant == 'indigo', 2, var(--list-size))};
234235
}
235236

projects/igniteui-angular/src/lib/core/styles/components/time-picker/_time-picker-theme.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,6 @@
2323
'indigo': rem(16px),
2424
), $variant);
2525

26-
.igx-input-group {
27-
display: flex;
28-
flex-direction: column;
29-
30-
@if $variant == 'indigo' or $variant == 'bootstrap' {
31-
[igxLabel] {
32-
margin-block-end: rem(4px);
33-
}
34-
} @else if $variant == 'fluent' {
35-
[igxLabel] {
36-
margin-block-end: rem(5px);
37-
}
38-
}
39-
}
40-
4126
%time-picker-display {
4227
@include sizable();
4328

projects/igniteui-angular/src/lib/core/styles/components/tooltip/_tooltip-theme.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
gap: rem(8px);
2626
min-height: rem(24px);
2727
min-width: rem(24px);
28-
max-width: 200px;
28+
max-width: rem(200px);
2929
width: fit-content;
3030

3131
igx-icon {
@@ -36,6 +36,10 @@
3636
display: flex;
3737
cursor: default;
3838
}
39+
40+
&:not([data-default]) {
41+
max-width: initial;
42+
}
3943
}
4044

4145
%arrow--top {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<span igxTooltip>{{content}}</span>
1+
<span data-default igxTooltip>{{content}}</span>

projects/igniteui-angular/src/lib/directives/tooltip/tooltip.directive.spec.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { DebugElement } from '@angular/core';
22
import { fakeAsync, TestBed, tick, flush, waitForAsync, ComponentFixture } from '@angular/core/testing';
33
import { By } from '@angular/platform-browser';
44
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
5-
import { IgxTooltipSingleTargetComponent, IgxTooltipMultipleTargetsComponent, IgxTooltipPlainStringComponent, IgxTooltipWithToggleActionComponent, IgxTooltipMultipleTooltipsComponent, IgxTooltipWithCloseButtonComponent } from '../../test-utils/tooltip-components.spec';
5+
import { IgxTooltipSingleTargetComponent, IgxTooltipMultipleTargetsComponent, IgxTooltipPlainStringComponent, IgxTooltipWithToggleActionComponent, IgxTooltipMultipleTooltipsComponent, IgxTooltipWithCloseButtonComponent, IgxTooltipWithNestedContentComponent } from '../../test-utils/tooltip-components.spec';
66
import { UIInteractions } from '../../test-utils/ui-interactions.spec';
77
import { HorizontalAlignment, VerticalAlignment, AutoPositionStrategy } from '../../services/public_api';
88
import { IgxTooltipDirective } from './tooltip.directive';
@@ -28,7 +28,8 @@ describe('IgxTooltip', () => {
2828
IgxTooltipMultipleTargetsComponent,
2929
IgxTooltipPlainStringComponent,
3030
IgxTooltipWithToggleActionComponent,
31-
IgxTooltipWithCloseButtonComponent
31+
IgxTooltipWithCloseButtonComponent,
32+
IgxTooltipWithNestedContentComponent
3233
]
3334
}).compileComponents();
3435
UIInteractions.clearOverlay();
@@ -500,6 +501,36 @@ describe('IgxTooltip', () => {
500501

501502
verifyTooltipVisibility(tooltipNativeElement, tooltipTarget, false);
502503
}));
504+
505+
it('Should respect default max-width constraint for plain string tooltip', fakeAsync(() => {
506+
hoverElement(button);
507+
flush();
508+
509+
verifyTooltipVisibility(tooltipNativeElement, tooltipTarget, true);
510+
511+
const maxWidth = getComputedStyle(tooltipNativeElement).maxWidth;
512+
expect(maxWidth).toBe('200px');
513+
}));
514+
});
515+
516+
describe('Custom content tooltip', () => {
517+
beforeEach(waitForAsync(() => {
518+
fix = TestBed.createComponent(IgxTooltipWithNestedContentComponent);
519+
fix.detectChanges();
520+
button = fix.debugElement.query(By.directive(IgxTooltipTargetDirective));
521+
tooltipTarget = fix.componentInstance.tooltipTarget;
522+
tooltipNativeElement = fix.debugElement.query(By.directive(IgxTooltipDirective)).nativeElement;
523+
}));
524+
525+
it('Should not have max-width constraint for custom content tooltip', fakeAsync(() => {
526+
hoverElement(button);
527+
flush();
528+
529+
verifyTooltipVisibility(tooltipNativeElement, tooltipTarget, true);
530+
531+
const maxWidth = getComputedStyle(tooltipNativeElement).maxWidth;
532+
expect(maxWidth).toBe('none');
533+
}));
503534
});
504535

505536
describe('Multiple targets with single tooltip', () => {

projects/igniteui-angular/src/lib/grids/columns/column.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
10661066
return (this.grid as any)._columns.indexOf(this);
10671067
}
10681068

1069+
/* mustCoerceToInt */
10691070
/**
10701071
* Gets the pinning position of the column.
10711072
* ```typescript

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4106,7 +4106,10 @@ export abstract class IgxGridBaseDirective implements GridType,
41064106
return this._activeRowIndexes;
41074107
} else {
41084108
const activeRow = this.navigation.activeNode?.row;
4109-
const selectedCellIndexes = (this.selectionService.selection?.keys() as any)?.toArray();
4109+
4110+
const selectedCellIndexes = this.selectionService.selection
4111+
? Array.from(this.selectionService.selection.keys())
4112+
: [];
41104113
this._activeRowIndexes = [activeRow, ...selectedCellIndexes];
41114114
return this._activeRowIndexes;
41124115
}

0 commit comments

Comments
 (0)