-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Angular A11y ESLint Rules (Accessibility) (#1168)
* feat: add eslint rule @angular-eslint/template/accessibility-alt-text * feat: add eslint rule @angular-eslint/template/accessibility-elements-content * feat: add eslint rule @angular-eslint/template/no-positive-tabindex
- Loading branch information
Showing
16 changed files
with
83 additions
and
16 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
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
6 changes: 5 additions & 1 deletion
6
...tacton/pages/configure/tacton-image-text-buttons/tacton-image-text-buttons.component.html
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
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
5 changes: 4 additions & 1 deletion
5
...ensions/tacton/pages/configure/tacton-selected-image/tacton-selected-image.component.html
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,4 +1,7 @@ | ||
<!-- display the selected image --> | ||
<p *ngIf="parameter?.properties?.tc_component_picture"> | ||
<img [src]="getImageUrl(parameter.properties?.tc_component_picture) | async" /> | ||
<img | ||
[src]="getImageUrl(parameter.properties.tc_component_picture) | async" | ||
[attr.alt]="parameter.properties.tc_component_picture" | ||
/> | ||
</p> |
2 changes: 1 addition & 1 deletion
2
src/app/pages/category/category-image/category-image.component.html
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,3 +1,3 @@ | ||
<div> | ||
<img loading="lazy" [src]="categoryImageUrl" itemprop="image" /> | ||
<img loading="lazy" [src]="categoryImageUrl" itemprop="image" [attr.alt]="category.name" /> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
src/app/pages/product/product-master-variations/product-master-variations.component.html
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
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
2 changes: 1 addition & 1 deletion
2
src/app/shared/components/product/product-listing/product-listing.component.html
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
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
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
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
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
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
16 changes: 14 additions & 2 deletions
16
src/app/shell/header/header-simple/header-simple.component.html
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,10 +1,22 @@ | ||
<div class="header header-simple container"> | ||
<div class="mid-header"> | ||
<div class="logo-wrapper d-none d-md-block"> | ||
<a rel="home" routerLink="/home" class="logo" data-testing-id="header-home-link-desktop"></a> | ||
<a | ||
rel="home" | ||
routerLink="/home" | ||
class="logo" | ||
[attr.aria-label]="'common.home.link' | translate" | ||
data-testing-id="header-home-link-desktop" | ||
></a> | ||
</div> | ||
<div class="logo-wrapper d-md-none"> | ||
<a rel="home" routerLink="/home" class="mobile-logo" data-testing-id="link-home"></a> | ||
<a | ||
rel="home" | ||
routerLink="/home" | ||
class="mobile-logo" | ||
[attr.aria-label]="'common.home.link' | translate" | ||
data-testing-id="link-home" | ||
></a> | ||
</div> | ||
</div> | ||
</div> |
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