如何使用 SLDS 在 Salesforce LWC 中显示红旗图标?

How to show red flag icon in Salesforce LWC using SLDS?

我正在编写闪电 html 代码以使用 SLDS 显示红旗。但是,我只看到灰旗。你能帮我得到图标的红色变体吗?谢谢!

 <lightning-icon icon-name="utility:priority" alternative-text="priority!" variant="priority" title="warning variant small" size="small"></lightning-icon>

[![灰旗][1]][1] [1]: https://i.stack.imgur.com/ikNC8.png

使用 variant="error" 将以红色显示图标

  <lightning-icon 
              icon-name="utility:priority" 
              alternative-text="priority!" 
              variant="error"
              title="warning variant small" 
              size="small">
      </lightning-icon>