Bootstrap tooltip arrow border and background color

前端 未结 2 1269
隐瞒了意图╮
隐瞒了意图╮ 2021-01-25 12:51

How do I change the background color and border color of the tooltip arrow? I\'m using Bootstrap 4.

2条回答
  •  太阳男子
    2021-01-25 13:47

    I was able to get it to work doing something similar to what Temani Afif suggested. However we ended up changing over to using popovers instead so we could apply a popover-box-shadow. Bootstrap popovers are just like tooltips except they come with a border so none of that fussing with the overlapping arrows was necessary. Plus when using scss you can do the vast majority of styling just by modifying the variables.scss file.

    In order to change the background color of the popover see this answer: Change bootstrap popover background color

提交回复
热议问题