首页 > 解决方案 > 为 blueprintjs 组件覆盖 css 的正确方法?

问题描述

!important我创建了一个简单的按钮并通过自定义类对其进行样式设置,但除非我强制在 css 文件中使用,否则它不起作用。如何在不使用的情况下覆盖样式!important

<Button
  className="asset-selector-btn"
  rightIcon="chevron-down"
  text="Pair"
/>

.asset-selector-btn {
  background: #19191a;
  font-size: 24px;
}

标签: blueprintjs

解决方案


推荐阅读