最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

mdc components - Angular MDC migration - How do I do these slide-toggle TODOs? - Stack Overflow

programmeradmin0浏览0评论

I have many hundreds of these kinds of TODOs when I'm trying to do the Angular 15 MDC migration, but I don't even know where to begin. I know I can try to figure out the new class names, but that is what got us (I didn't do it) in this mess in the first place. What am I supposed to do here, and preferably without having to change the global theme, but keep it in the scope of this component.

  .mat-mdc-slide-toggle {
    height: 14px;
    line-height: 14px;
    /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
    .mat-slide-toggle-bar {
      height: 8px;
      width: 28px;
      border-radius: 4px;
    }
    /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
    /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
    .mat-slide-toggle-thumb-container {
      height: 14px;
      width: 14px;
      /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
      .mat-slide-toggle-thumb {
        height: 14px;
        width: 14px;
      }
    }
    /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
    .mat-slide-toggle-ripple {
      top: calc(50% - 14px);
      left: calc(50% - 14px);
      height: 28px;
      width: 28px;
    }
  }
}

发布评论

评论列表(0)

  1. 暂无评论