Skip to content

Commit 6bf7e6c

Browse files
committed
refactor(action-strip): default to initially hidden
1 parent 9f88351 commit 6bf7e6c

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes for each version of this project will be documented in this file.
44

5+
## 20.0.0
6+
7+
### General
8+
- **Angular 20 Compatibility** - Ignite UI for Angular now plays nice with Angular 20! Upgrade your apps and enjoy the latest features.
9+
- `IgxActionStrip`
10+
- **Behavioral Changes** - When using the Action Strip standalone, outside of Grid, scenarios the component is no longer initially visible and the `hidden` property now defaults to `true`.
11+
512
## 19.2.0
613

714
### General

projects/igniteui-angular/src/lib/action-strip/action-strip.component.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('igxActionStrip', () => {
3434
fixture = TestBed.createComponent(IgxActionStripComponent);
3535
actionStrip = fixture.componentInstance as IgxActionStripComponent;
3636
fixture.detectChanges();
37+
expect(actionStrip.hidden).toBeTruthy();
3738

3839
const el = document.createElement('div');
3940
fixture.debugElement.nativeElement.appendChild(el);
@@ -162,7 +163,7 @@ describe('igxActionStrip', () => {
162163
Lorem ipsum dolor sit
163164
</p>
164165
</div>
165-
<igx-action-strip #actionStrip>
166+
<igx-action-strip #actionStrip [hidden]="false">
166167
<igx-icon class="asIcon" (click)="onIconClick()">alarm</igx-icon>
167168
</igx-action-strip>
168169
</div>
@@ -197,7 +198,7 @@ class IgxActionStripTestingComponent {
197198
Lorem ipsum dolor sit
198199
</p>
199200
</div>
200-
<igx-action-strip #actionStrip>
201+
<igx-action-strip #actionStrip [hidden]="false">
201202
<span *igxActionStripMenuItem>Mark</span>
202203
<span *igxActionStripMenuItem>Favorite</span>
203204
<span *igxActionStripMenuItem>Download</span>
@@ -219,7 +220,7 @@ class IgxActionStripMenuTestingComponent {
219220
Lorem ipsum dolor sit
220221
</p>
221222
</div>
222-
<igx-action-strip #actionStrip>
223+
<igx-action-strip #actionStrip [hidden]="false">
223224
<span>Mark</span>
224225
<span *igxActionStripMenuItem>Favorite</span>
225226
<span *igxActionStripMenuItem>Download</span>

projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class IgxActionStripComponent implements IgxActionStripToken, AfterConten
134134
* ```
135135
*/
136136
@Input({ transform: booleanAttribute })
137-
public hidden = false;
137+
public hidden = true;
138138

139139

140140
/**

src/app/action-strip/action-strip.sample.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
</p>
1111
@if (isVisible) {
1212
<igx-action-strip
13+
[hidden]="false"
1314
class="my-action-strip" #actionstrip
1415
[style.--ig-size]="'var(--ig-size-' + sizeSelector.size + ')'"
1516
>

0 commit comments

Comments
 (0)