Ember 如何更改 Ember bootstrap 工具提示背景颜色
Ember how to change Ember boostrap Tooltip background color
目前我正在使用 Ember Bootstrap Tooltip 组件,我阅读了文档,但没有发现任何关于自定义背景颜色的信息。如果有人告诉我该怎么做,那将会很有帮助。
此问题已由 Simon Ihmig one of the maintainers of Ember Bootstrap in a GitHub issue 回答。
You don't apply any styling via JS, you customize the BS components as you would for any other Bootstrap-based project. If using plain CSS (not recommended), you would need to override the default styles using CSS, If using Sass (recommended!), you can just tweak the related Sass variables. See https://getbootstrap.com/docs/5.1/components/tooltips/#variables (this is BS v5)
目前我正在使用 Ember Bootstrap Tooltip 组件,我阅读了文档,但没有发现任何关于自定义背景颜色的信息。如果有人告诉我该怎么做,那将会很有帮助。
此问题已由 Simon Ihmig one of the maintainers of Ember Bootstrap in a GitHub issue 回答。
You don't apply any styling via JS, you customize the BS components as you would for any other Bootstrap-based project. If using plain CSS (not recommended), you would need to override the default styles using CSS, If using Sass (recommended!), you can just tweak the related Sass variables. See https://getbootstrap.com/docs/5.1/components/tooltips/#variables (this is BS v5)