Well for me it’s not a question of HOW I set the style (underline, border…), but IF the style should be applied at all to all kinds of links.
Whatever the styling method, I have the same issue (text color, underline, border) with all div/container links on all my pages now that they all use a page content template which si rendered inside a .brxe-post-content
container:
I’m pretty sure link styling should be applied on text elements ONLY and not on div or container, for which underline makes no sense, for instance.
The links target is actually very complete and would cover most of text links WITHOUT adding .brxe-post-content a
selector:
.brxe-accordion .accordion-content-wrapper a, .brxe-icon-box .content-wrapper a, .brxe-list a, .brxe-post-content a, .brxe-posts .dynamic p a, .brxe-shortcode a, .brxe-tabs .tab-content a, .brxe-team-members .description a, .brxe-testimonials .testimonial-content-wrapper a, .brxe-text a, a.brxe-text, .brxe-text-basic a, a.brxe-text-basic
Now, to allow WP content link styling (classic editor or Gutenberg), I would put .brxe-post-content[data-source="editor"]
in the list.
Or maybe add a theme style option to style WP post content links, which would add it?
Another important drawback is that the styling is not visible in the builder when editing a page, because in this case content is not nested inside .brxe-post-content
.
I would also add that since this rule doesn’t apply to header and footer, it is not consistent for all Bricks content, and thus should be removed.
Finally, the rule is impossible to override with something like color: inherit; text-decoration: inherit
because it would erase the styling of all links and this is not wanted.