The preview of a highlighting style with right and/or left vertical bar in the Margins shows it as adjacent to text (inside before and after labels) when it really goes at the margins in the actual text.
Here's the style definition demonstrating this:

But here's how it looks when applied in the text:
