Skip to content

Commit

Permalink
chore: remove extraneous timeline step aria current logic
Browse files Browse the repository at this point in the history
removed in ba4d826
  • Loading branch information
Ashley Ryan authored and ashleyryan committed Sep 21, 2022
1 parent 2205466 commit 0630ff9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions projects/angular/clarity.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4304,8 +4304,6 @@ export class ClrTimelineStep {
// Warning: (ae-forgotten-export) The symbol "TimelineIconAttributeService" needs to be exported by the entry point index.d.ts
constructor(iconAttributeService: TimelineIconAttributeService, platformId: any);
// (undocumented)
get iconAriaCurrent(): boolean;
// (undocumented)
get iconAriaLabel(): string;
// (undocumented)
get iconShape(): string;
Expand Down
17 changes: 0 additions & 17 deletions projects/angular/src/timeline/timeline-step.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,6 @@ export default function (): void {
step.state = ClrTimelineStepState.ERROR;
expect(step.iconAriaLabel).toBe('Error');
});

it('set the aria-current', () => {
step.state = ClrTimelineStepState.NOT_STARTED;
expect(step.iconAriaCurrent).toBe(false);

step.state = ClrTimelineStepState.CURRENT;
expect(step.iconAriaCurrent).toBe(true);

step.state = ClrTimelineStepState.PROCESSING;
expect(step.iconAriaCurrent).toBe(false);

step.state = ClrTimelineStepState.SUCCESS;
expect(step.iconAriaCurrent).toBe(false);

step.state = ClrTimelineStepState.ERROR;
expect(step.iconAriaCurrent).toBe(false);
});
});

describe('Template API', () => {
Expand Down
4 changes: 0 additions & 4 deletions projects/angular/src/timeline/timeline-step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ export class ClrTimelineStep {
}
}

get iconAriaCurrent(): boolean {
return this.state === ClrTimelineStepState.CURRENT;
}

get iconAriaLabel(): string {
return this.iconAttributeService.getAriaLabel(this.state);
}
Expand Down

0 comments on commit 0630ff9

Please sign in to comment.