Skip to content

Commit

Permalink
feat(carousel): add aria-attributes (#4131)
Browse files Browse the repository at this point in the history
closes #4130
  • Loading branch information
tarusin authored and valorkin committed Apr 5, 2018
1 parent a5d8f78 commit a21d3e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/carousel/slide.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import { CarouselComponent } from './carousel.component';
<div [class.active]="active" class="item">
<ng-content></ng-content>
</div>
`
`,
host: {
'[attr.aria-hidden]': '!active'
}
})
export class SlideComponent implements OnInit, OnDestroy {
/** Is current slide active */
Expand Down

0 comments on commit a21d3e0

Please sign in to comment.