Repository navigation
How to style the group toggle icon? #3496
Answered
by
Aj2280
metamorphosis-1
asked this question in
Q&A
Answered by
Aj2280
Sep 7, 2026
Replies: 1 comment 1 reply
|
In JointJS+ ( Depending on whether your theme renders the icon as an SVG mask/background or a CSS border triangle, here is how you can color it with your Method 1: Using CSS
|
1 reply
Answer selected by
metamorphosis-1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


In JointJS+ (
joint.ui.Stencil), the collapse/expand toggle arrow is rendered via the pseudo-element.group-label::beforeon.group(and styled for its closed state with.group.closed .group-label::before).Depending on whether your theme renders the icon as an SVG mask/background or a CSS border triangle, here is how you can color it with your
--primary-colorCSS variable:Method 1: Using CSS
mask(Recommended for SVG icons)If the toggle icon is an SVG or background image, modern CSS allows you to mask a background color so it respects CSS variables: