Issue with replace: true & libraries built on top of third party CSS #13805
Description
I have a bit of a long term quandary here - I know that replace: true
is deprecated, but removing this is a bit of a problematic situation with UI Bootstrap. The library is built on top of Bootstrap's CSS, which enforces a certain HTML structure. The problem with removing replace usage is that this creates an intermediary element, whether the element itself the directive is used on, or an element with the name of the directive if it is used as an element. This is a major issue for any library built on top of third party CSS like UI Bootstrap, and (I am guessing) angular-foundation.
In addition, it prevents users from using certain built in directives with some elements such as ng-class.
Is there any guidance on how we could work around this in UI Bootstrap while removing replace: true
usage as recommended? It should be noted that we likely cannot work around HTML structure too much since this would cause a massive pain for those using Bootstrap themes with UI Bootstrap.