forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progress-spinner): prevent users from tabbing into underlying SVG…
… on IE Since IE makes SVGs focusable by default, we need to disable it manually in order to prevent users from tabbing into it accidentally. Relates to angular#6125.
- Loading branch information
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<!-- | ||
preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's | ||
center. The center of the circle will remain at the center of the md-progress-spinner | ||
element containing the SVG. | ||
element containing the SVG. `focusable="false"` prevents IE from allowing the user to | ||
tab into the SVG element. | ||
--> | ||
<svg viewBox="0 0 100 100" | ||
preserveAspectRatio="xMidYMid meet"> | ||
preserveAspectRatio="xMidYMid meet" | ||
focusable="false"> | ||
<path #path [style.strokeWidth]="strokeWidth"></path> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters