material2-start icon indicating copy to clipboard operation
material2-start copied to clipboard

deprecated /deep/

Open nueko opened this issue 6 years ago • 2 comments

I think we should remove the shadow-piercing for clarify https://angular.io/guide/component-styles#deprecated-deep--and-ng-deep

nueko avatar Nov 26 '17 14:11 nueko

sgtm

EladBezalel avatar Nov 26 '17 14:11 EladBezalel

what about this?

/**
* styles.css
**/
...
mat-list-item mat-icon > svg {
  border-radius: 50%
}

/**
* app.component.css
**/

:host {
  display: flex;
  flex: 1;
}

mat-sidenav {
  width: 320px;
}

.content {
  padding: 12px;
}
/* removed
/deep/ mat-icon.avatar
*/
mat-list-item mat-icon {
  overflow: hidden;
  width: 64px;
  height: 64px;
/*  border-radius: 50%; */
  margin: 12px;
}

.fab-bottom-right {
  position: fixed;
 /*add z-index*/
  z-index: 10;
  right: 16px;
  bottom: 16px;
}

/* we don't need this as it makes the sidenav not fill the height by 100% and looks like floating
/deep/ .mat-list-item-content {
  height: auto !important;
}
 */

nueko avatar Nov 26 '17 15:11 nueko