Skip to content

Commit 468bf48

Browse files
committed
fixup! refactor(material-experimental/mdc-progress-bar): remove wrapper element for progress bar
1 parent 0609ca5 commit 468bf48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/material-experimental/mdc-progress-bar/progress-bar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
display: block;
99

1010
&._mat-animation-noopable {
11-
// Disabled the loading animations.
11+
// Disable the loading animations.
1212
animation: none;
1313

1414
.mdc-linear-progress__primary-bar {

src/material-experimental/mdc-progress-bar/progress-bar.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ describe('MDC-based MatProgressBar', () => {
2323
const fixture = createComponent(BasicProgressBar);
2424
const host = fixture.nativeElement as Element;
2525
const element = host.children[0];
26-
expect(element.children.length).toBe(1);
26+
const children = element.children;
27+
expect(children.length).toBe(3);
2728

28-
const div = element.querySelector('div')!;
29-
expect(div).toBeTruthy();
30-
expect(div.getAttribute('aria-hidden')).toBe('true');
29+
const ariaHidden = Array.from(children).map(child => child.getAttribute('aria-hidden'));
30+
expect(ariaHidden).toEqual(['true', 'true', 'true']);
3131
});
3232

3333
describe('with animation', () => {

0 commit comments

Comments
 (0)