diff --git a/src/accordion/accordion.js b/src/accordion/accordion.js
index 586314c9c6..eaa5d4b279 100644
--- a/src/accordion/accordion.js
+++ b/src/accordion/accordion.js
@@ -58,7 +58,7 @@ angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse'])
return {
require: '^uibAccordion', // We need this directive to be inside an accordion
transclude: true, // It transcludes the contents of the directive into the template
- replace: true, // The element containing the directive will be replaced with the template
+ restrict: 'A',
templateUrl: function(element, attrs) {
return attrs.templateUrl || 'uib/template/accordion/accordion-group.html';
},
@@ -74,6 +74,7 @@ angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse'])
};
},
link: function(scope, element, attrs, accordionCtrl) {
+ element.addClass('panel');
accordionCtrl.addGroup(scope);
scope.openClass = attrs.openClass || 'panel-open';
diff --git a/src/accordion/docs/demo.html b/src/accordion/docs/demo.html
index 83f643fff7..2b119b3e5e 100644
--- a/src/accordion/docs/demo.html
+++ b/src/accordion/docs/demo.html
@@ -1,18 +1,16 @@
@@ -28,35 +26,35 @@
-
+
This content is straight in the template.
-
-
+
+
{{group.content}}
-
-
+
+
The body of the uib-accordion group grows to fit the contents
{{item}}
-
-
+
+
Hello
-
-
+
+
Custom template with custom header template
World
-
-
+
+
Please, to delete your account, click the button below
-
-
+
+
I can have markup, too!
This is just some content to illustrate fancy headings.
-
+
diff --git a/src/accordion/docs/readme.md b/src/accordion/docs/readme.md
index a20a951d6e..25f790c3fa 100644
--- a/src/accordion/docs/readme.md
+++ b/src/accordion/docs/readme.md
@@ -32,11 +32,6 @@ The body of each accordion group is transcluded into the body of the collapsible
_(Default: `false`)_ -
Whether accordion group is open or closed.
-* `panel-class`
-
- _(Default: `panel-default`)_ -
- Add ability to use Bootstrap's contextual panel classes (panel-primary, panel-success, panel-info, etc...) or your own. This must be a string.
-
* `template-url`
_(Default: `uib/template/accordion/accordion-group.html`)_ -
Add the ability to override the template used on the component.
diff --git a/src/accordion/test/accordion.spec.js b/src/accordion/test/accordion.spec.js
index 2cae4bd4da..1879d6f9c4 100644
--- a/src/accordion/test/accordion.spec.js
+++ b/src/accordion/test/accordion.spec.js
@@ -176,12 +176,12 @@ describe('uib-accordion', function() {
var tpl =
'' +
- '' +
+ '' +
'';
element = $compile(tpl)(scope);
scope.$digest();
- expect(element.find('[template-url]').html()).toBe('baz');
+ expect(element.find('[template-url]').html()).toBe('