数据列表和 sassLint 错误:不应使用供应商前缀



我正在使用HTML5数据列表标签,我想删除它的默认箭头: 数据列表的图像

据我所知,这是我发现删除它的唯一方法:

&::-webkit-calendar-picker-indicator {
display: none;
}

但是,我现在收到以下sassLint警告,我不确定如何照顾,任何帮助将不胜感激:

47:6  warning  Vendor prefixes should not be used  no-vendor-prefixes

所以我发现由于我真的需要这个供应商前缀,我只是使用以下注释强制 Sass lint 忽略它。

// sass-lint:disable no-vendor-prefixes
&::-webkit-calendar-picker-indicator {
display: none;
}

最新更新