Skip to content

Commit

Permalink
refactor(): use ksSize and ksMaxSize when possibile in carousel.html #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks89 committed Oct 15, 2018
1 parent 3869631 commit 4b63372
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<main id="carousel-container"
[attr.aria-label]="accessibilityConfig.carouselContainerAriaLabel"
[title]="accessibilityConfig.carouselContainerTitle"
[style.width]="configCarousel?.maxWidth">
ksSize [sizeConfig]="{width: configCarousel?.maxWidth,
height: ''}">

<figure id="current-figure"
[style.width]="configCarousel?.maxWidth">
ksSize [sizeConfig]="{width: configCarousel?.maxWidth,
height: ''}">

<a class="nav-left" *ngIf="configCarousel?.showArrows"
[attr.aria-label]="accessibilityConfig.carouselNextImageAriaLabel"
Expand All @@ -19,8 +21,8 @@

<img id="current-image"
[style.object-fit]="configCarousel?.objectFit"
[style.max-width]="configCarousel?.maxWidth"
[style.max-height]="configCarousel?.maxHeight"
ksMaxSize [sizeConfig]="{maxWidth: configCarousel?.maxWidth,
maxHeight: configCarousel?.maxHeight}"
[src]="currentImage.modal.img"
[attr.aria-label]="currentImage.modal.ariaLabel"
[title]="currentImage.modal.title ? currentImage.modal.title : getTitleToDisplay()"
Expand Down

0 comments on commit 4b63372

Please sign in to comment.