Skip to content

Commit

Permalink
update accessiblity to use core (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
strausr authored Aug 3, 2020
1 parent 5e2106e commit 679b768
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions projects/angular-cld/src/lib/cloudinary-image.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { Cloudinary } from './cloudinary.service';
import { CloudinaryTransformationDirective } from './cloudinary-transformation.directive';
import { CloudinaryPlaceHolder } from './cloudinary-placeholder.component';
import { isBrowser } from './cloudinary.service';
import { accessibilityEffect } from './constants';

@Component({
selector: 'cl-image',
Expand Down Expand Up @@ -184,6 +183,6 @@ export class CloudinaryImage
}

accessibilityModeHandler() {
return this.cloudinary.url(this.publicId, {transformation: [this.options, accessibilityEffect[this.accessibility]]});
return this.cloudinary.url(this.publicId, {transformation: [this.options], accessibility: this.accessibility});
}
}
7 changes: 0 additions & 7 deletions projects/angular-cld/src/lib/constants.ts

This file was deleted.

0 comments on commit 679b768

Please sign in to comment.