@@ -67,7 +67,6 @@ function sortDirectives(a: HasElement, b: HasElement) {
6767 exportAs : 'ngToolbar' ,
6868 host : {
6969 'role' : 'toolbar' ,
70- 'class' : 'ng-toolbar' ,
7170 '[attr.tabindex]' : '_pattern.tabIndex()' ,
7271 '[attr.aria-disabled]' : '_pattern.disabled()' ,
7372 '[attr.aria-orientation]' : '_pattern.orientation()' ,
@@ -157,7 +156,7 @@ export class Toolbar<V> {
157156
158157 /** Finds the toolbar item associated with a given element. */
159158 private _getItem ( element : Element ) {
160- const widgetTarget = element . closest ( '.ng-toolbar-widget ' ) ;
159+ const widgetTarget = element . closest ( '[ngToolbarWidget] ' ) ;
161160 return this . items ( ) . find ( widget => widget . element ( ) === widgetTarget ) ;
162161 }
163162}
@@ -181,7 +180,6 @@ export class Toolbar<V> {
181180 selector : '[ngToolbarWidget]' ,
182181 exportAs : 'ngToolbarWidget' ,
183182 host : {
184- 'class' : 'ng-toolbar-widget' ,
185183 '[attr.data-active]' : 'active()' ,
186184 '[attr.tabindex]' : '_pattern.tabIndex()' ,
187185 '[attr.inert]' : 'hardDisabled() ? true : null' ,
@@ -253,9 +251,6 @@ export class ToolbarWidget<V> implements OnInit, OnDestroy {
253251@Directive ( {
254252 selector : '[ngToolbarWidgetGroup]' ,
255253 exportAs : 'ngToolbarWidgetGroup' ,
256- host : {
257- '[class.ng-toolbar-widget-group]' : '!!toolbar()' ,
258- } ,
259254} )
260255export class ToolbarWidgetGroup < V > {
261256 /** The parent Toolbar. */
0 commit comments