It'd be helpful to keep the .popover-body to just having user-supplied content. The close button could be a sibling of .popover-body without changing appearance or (probably) behavior. The goal is that users should be able to write rules like .popover-body > div > :last-child to target the final (or first) content element in the popover.
In particular, I wanted to do something like
.popover-body > div > :last-child {
margin-bottom: 0
}
In the current configuration, we add the
<button>
element inside the.popover-body > div
container.It'd be helpful to keep the
.popover-body
to just having user-supplied content. The close button could be a sibling of.popover-body
without changing appearance or (probably) behavior. The goal is that users should be able to write rules like.popover-body > div > :last-child
to target the final (or first) content element in the popover.In particular, I wanted to do something like