Skip to content

Commit

Permalink
Merge 624f258 into 064251c
Browse files Browse the repository at this point in the history
  • Loading branch information
shimedh committed Oct 9, 2018
2 parents 064251c + 624f258 commit 1131f5a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ <h2>{{title}}</h2>

<div [load-image]="feature.iconUrl" class="icon-medium"></div>
<div class="feature-body">
<h4>{{feature.title}}</h4>
<div class="feature-description" [id]="feature.title | removeSpaces">{{feature.description}}
<a *ngIf="feature.learnMoreUrl"
[href]="feature.learnMoreUrl"
target="_blank"
[attr.aria-label]="feature.title"
[attr.aria-describedby]="feature.title | removeSpaces">{{'topBar_learnMore' | translate}}</a>
<h4 [id]="feature.title | removeSpaces">{{feature.title}}</h4>
<div class="feature-description">{{feature.description}}
<div class="feature-learnMore"
*ngIf="feature.learnMoreUrl"
[attr.aria-labelledBy]="feature.title | removeSpaces"
[attr.aria-label]="'topBar_learnMore' | translate">
<a [href]="feature.learnMoreUrl"
target="_blank"
[attr.aria-describedby]="feature.title | removeSpaces">{{'topBar_learnMore' | translate}}</a>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/src/app/site/spec-picker/spec-picker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ <h2 class="tiers-header" *ngIf="specManager.selectedSpecGroup.recommendedSpecs.l
<div class="spec-expander" *ngIf="showExpander">
<span (click)="specManager.selectedSpecGroup.isExpanded = !specManager.selectedSpecGroup.isExpanded"
(keydown)="onExpandKeyPress($event)"
role="link"
role="button"
tabindex="0"
[attr.aria-expanded]="specManager.selectedSpecGroup.isExpanded"
[attr.aria-controls]="specManager.selectedSpecGroup.id + specManager.selectedSpecGroup.selectedSpec">
[attr.aria-controls]="specManager.selectedSpecGroup.id + specManager.selectedSpecGroup.selectedSpec.skuCode">

<span [load-image]="!specManager.selectedSpecGroup.isExpanded ? 'image/caret-down.svg' : 'image/caret-up.svg'" class="expand-icon"></span>
<a>{{ (!specManager.selectedSpecGroup.isExpanded ? 'seeAllOptions' : 'seeRecommendedOptions') | translate}}</a>
Expand Down
4 changes: 4 additions & 0 deletions client/src/app/site/spec-picker/spec-picker.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ $center-column-max-width: calc(#{$spec-card-max-width}*4 - 40px);
text-overflow: ellipsis;
max-height: 36px; /* fallback */
}

.feature-learnMore{
display: inline-block;
}
}

footer{
Expand Down

0 comments on commit 1131f5a

Please sign in to comment.