Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… the naviagtion issues with the lesson info modal (oppia#19011)

* fix lesson info a11y

* changed the alt of img
  • Loading branch information
Patel-Muhammad authored Oct 20, 2023
1 parent 0c34936 commit 282c1eb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<picture>
<source type="image/webp" [srcset]="profilePictureWebpDataUrl">
<source type="image/png" [srcset]="profilePicturePngDataUrl">
<img [src]="profilePicturePngDataUrl" class="rounded-circle" alt="User Avatar">
<img [src]="profilePicturePngDataUrl" class="rounded-circle" [alt]="username">
</picture>
</a>

<picture *ngIf="!isUsernameLinkable(username)">
<source type="image/webp" [srcset]="profilePictureWebpDataUrl">
<source type="image/png" [srcset]="profilePicturePngDataUrl">
<img [src]="profilePicturePngDataUrl" class="rounded-circle" alt="User Avatar">
<img [src]="profilePicturePngDataUrl" class="rounded-circle" [alt]="username">
</picture>
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ <h1>
{{ 'I18N_LESSON_INFO_HEADER' | translate }}
</span>
</h1>
<li class="oppia-exploration-info-icon e2e-test-exploration-info-icon">
<div class="oppia-exploration-info-icon e2e-test-exploration-info-icon">
<i class="fas fa-info-circle oppia-navbar-breadcrumb-icon oppia-footer-info-icon"></i>
<span class="oppia-icon-accessibility-label">{{ 'I18N_PLAYER_INFO_TOOLTIP' | translate }}</span>
</li>
</div>
</button>
<oppia-hint-and-solution-buttons *ngIf="windowIsNarrow && hintsAndSolutionsAreSupported">
</oppia-hint-and-solution-buttons>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
bottom: 0;
color: #fff;
font-family: "Capriola", "Roboto", Arial, sans-serif;
font-size: 1.5em;
margin: 12px 0 0 0;
padding: 0;
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
<img [src]="getStaticImageUrl(infoCardBackgroundImageUrl)"
class="oppia-info-card-bg-image"
alt="{{ expCategory }}">
<h2 class="oppia-info-card-title break-word" *ngIf="isHackyExpTitleTranslationDisplayed()">
<h2 class="oppia-info-card-title break-word" *ngIf="isHackyExpTitleTranslationDisplayed()" tabindex="0">
{{ expTitleTranslationKey | translate }}
</h2>
<h2 class="oppia-info-card-title break-word"
tabindex="0"
*ngIf="!isHackyExpTitleTranslationDisplayed()">
{{ expTitle }}
</h2>
Expand All @@ -19,10 +20,11 @@ <h2 class="oppia-info-card-title break-word" *ngIf="isHackyExpTitleTranslationDi
{{ expDesc | truncateAndCapitalize: 90 }}
</h4>
<h4 class="oppia-exploration-description"
tabindex="0"
*ngIf="isHackyExpDescTranslationDisplayed()">
{{ expDescTranslationKey | translate | truncateAndCapitalize: 90 }}
</h4>
<h4 [ngClass]="(checkpointCount === 1) ? 'd-none' : 'progress-bar-label-text'">
<h4 tabindex="0" [ngClass]="(checkpointCount === 1) ? 'd-none' : 'progress-bar-label-text'">
Learning Progress
</h4>
<div class="progress-bar-container"
Expand All @@ -49,6 +51,8 @@ <h4 [ngClass]="(checkpointCount === 1) ? 'd-none' : 'progress-bar-label-text'">
class="btn btn-secondary save-progress-btn"
*ngIf="(!userIsLoggedIn && checkpointCount>1)"
[ngClass]="{'disabled oppia-disabled-link': checkpointStatusArray[0] === 'in-progress'}"
tabindex="0"
(keydown.enter)="saveLoggedOutProgress()"
(click)="saveLoggedOutProgress()">
{{ 'I18N_SAVE_PROGRESS_TEXT' | translate }}
</button>
Expand Down

0 comments on commit 282c1eb

Please sign in to comment.