Skip to content

Commit 59969c5

Browse files
committed
fix(cdk/a11y): FocusTrap deprecation docs don't render correctly
- fix invalid usage of `@breaking-change` - fix a couple of API doc typos Relates to angular#18201. Relates to angular#22136.
1 parent 9f879b2 commit 59969c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cdk/a11y/focus-trap/focus-trap.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ import {InteractivityChecker} from '../interactivity-checker/interactivity-check
3030
*
3131
* This class currently uses a relatively simple approach to focus trapping.
3232
* It assumes that the tab order is the same as DOM order, which is not necessarily true.
33-
* Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to misalign.
33+
* Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned.
3434
*
3535
* @deprecated Use `ConfigurableFocusTrap` instead.
36-
* @breaking-change for 11.0.0 Remove this class.
36+
* @breaking-change 11.0.0
3737
*/
3838
export class FocusTrap {
3939
private _startAnchor: HTMLElement | null;
@@ -96,7 +96,7 @@ export class FocusTrap {
9696
/**
9797
* Inserts the anchors into the DOM. This is usually done automatically
9898
* in the constructor, but can be deferred for cases like directives with `*ngIf`.
99-
* @returns Whether the focus trap managed to attach successfuly. This may not be the case
99+
* @returns Whether the focus trap managed to attach successfully. This may not be the case
100100
* if the target element isn't currently in the DOM.
101101
*/
102102
attachAnchors(): boolean {
@@ -355,7 +355,7 @@ export class FocusTrap {
355355
/**
356356
* Factory that allows easy instantiation of focus traps.
357357
* @deprecated Use `ConfigurableFocusTrapFactory` instead.
358-
* @breaking-change for 11.0.0 Remove this class.
358+
* @breaking-change 11.0.0
359359
*/
360360
@Injectable({providedIn: 'root'})
361361
export class FocusTrapFactory {

0 commit comments

Comments
 (0)