我已经导入了材料/密度,并按照我的 scss 文件中的建议代码进行操作:
@use "@material/button";
.my-custom-button {
// Sets button density scale to `-3`, i.e. button height to `24px`.
@include button.density(-3);
}
Run Code Online (Sandbox Code Playgroud)
但出现找不到样式表的错误。我已经对网络进行了评分,但没有找到解决此问题的方法。