angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

uib-alert type doesn't apply css #6558

Open jnal opened 7 years ago

jnal commented 7 years ago

Bug description:

The latest template for alert doesn't apply class, can see the history that class is now being set on the controller but seems like it doesn't get applied to the directive.

Link to minimally-working plunker that reproduces the issue:

http://embed.plnkr.co/3BpJRhhxKmWgPw4KEVxo/

Steps to reproduce the issue:

A simple code below doesn't show styled. <div uib-alert type="danger">test</div>

Version of Angular, UIBS, and Bootstrap

Angular: 1.4.6

UIBS: 2.5.0

Bootstrap: 3.3.7

jnal commented 7 years ago

updated the code to used class/ng-class instead of

<div uib-alert class="alert-danger">test</div>

this issue can now be closed