Repository navigation
Description
Component / Area
Splitter
Is your feature request related to a problem?
igx-splitter ignores --ig-size. The bar, the drag handle and the expanders render at one fixed size in every theme, while the other components scale between small, medium and large.
splitter/src/splitter/themes/_base.scssreads onesizetoken (4px) from the theme schema. The bar is4pxplus1pxof padding on each side, so it is6pxthick at every size.- The drag handle is
4pxthick with a2pxradius. The expanders are CSS border triangles built from the same4px. igx-splitterdoes not includesizable()and sets no--component-size, so--ig-sizeon the element or on an ancestor changes nothing.
Describe the solution you'd like
The splitter reads --ig-size the way the other components do: @include sizable() and --component-size: var(--ig-size, <default-size>) on igx-splitter, and sizable() for every value below.
Design handoff: https://www.figma.com/design/m26ZFquPMB9hDpR4qExBFm/branch/rFgQqVuP1CgzVueDMAg8pM/Splitter-Handoff?node-id=32-1883 (section "Sizes and Resizing" on the Material, Fluent, Bootstrap and Indigo pages).
| Small | Medium | Large | |
|---|---|---|---|
| Bar thickness | 6px | 12px | 18px |
| Drag handle thickness | 4px | 6px | 8px |
| Drag handle border radius (Material) | 2px | 8px | 8px |
| Expander icon, Material / Fluent / Bootstrap | 18px | 20px | 24px |
| Expander icon, Indigo | 14px | 16px | 24px |
| Gap between the drag handle and each expander | 48px | 48px | 46px |
- Thickness is the bar
widthin a horizontal splitter and itsheightin a vertical one. - The drag handle stays 25% of the bar length at every size.
- The default size is small in every theme (
default-size: 1). Small equals what the splitter renders today, so a splitter without--ig-sizelooks the same as before. - Indigo keeps its 1px idle bar at every size and grows to the size thickness on hover and focus.
Proposed API or Usage
<igx-splitter style="--ig-size: var(--ig-size-large)">
<igx-splitter-pane>...</igx-splitter-pane>
<igx-splitter-pane>...</igx-splitter-pane>
</igx-splitter>No new inputs. The component classes and the public API stay the same.
Describe alternatives you've considered
Passing $size to splitter-theme() sets one thickness for the whole theme. It does not follow --ig-size and it does not scale the handle radius or the expanders.
How important is this feature to you?
Important — affects my workflow
Additional context
Implementation notes:
- The splitter schema in
igniteui-theminghas a singlesize: rem(4px)and nodefault-size. It needsdefault-size: 1and the three steps before this can be built here. _base.scsscomputes--splitter-sizeat compile time from thesizetoken, andthemes/shared/indigo.scssuses it for the idle scale (1 / var(--splitter-size)) and the hitbox. Both have to follow the current size.- The expander hitboxes (
::beforeonigx-splitter-bar__expander) are multiples of thesizetoken and have to scale with it. - The handoff draws the expanders as the
arrow_drop_up/arrow_drop_downicons. The component draws border triangles. Either the triangles scale with the icon size, or the expanders become icons.
Open questions for design:
- The gap is 46px at Large and 48px at Small and Medium. Is 46px intended?
- The Indigo expander is 14px, 16px, 24px. Is 24px intended at Large?
- Border radius of the drag handle for Fluent, Bootstrap and Indigo at each size.
Related: IgniteUI/igniteui-webcomponents#2634
Depends on: IgniteUI/igniteui-theming#682
Activity
kdinev commentedon Nov 19, 2026
@desig9stein I want to make sure that the default sizes are covered correctly - the current default would be the new small size and the default would change to the medium one, correct? If I want to be backwards-compatible, a migration would require applying
--size: var(--ig-size-small);?fix(splitter): keep the handle length on a short bar and a set radius
feat(splitter): follow --ig-size with small, medium and large bars
feat(splitter): follow --ig-size with small, medium and large bars
desig9stein commentedon Nov 19, 2026
No, the default does not change. The current size is the new small size, and small stays the default: the splitter schema gets default-size: 1. A splitter without --ig-size renders as it does today, so nothing needs a migration.
The only apps that see a difference are the ones that already set --ig-size to medium or large on the splitter or on an ancestor, for example globally. The splitter ignored it until now and will follow it after this change, so the bar becomes 12px or 18px there. To keep the current look in that case:
igx-splitter {
--ig-size: var(--ig-size-small);
}
Note that it is --ig-size, not --size. On the splitter --size is the bar thickness token (4px by default), and it
keeps working as before: it sets the small size and the medium and large steps add to it.
The CHANGELOG entry in #18017 says the same.
feat(splitter): size the idle bar of the indigo theme by --ig-size
feat(splitter): measure the 48px gap from the expander icon box
kdinev commentedon Nov 23, 2026
@desig9stein So this would mean we don't have a uniform default size across all components and a global override like this one:
would affect some components, but others not?
desig9stein commentedon Nov 23, 2026
No. A global override affects every component that supports
--ig-size, and after this change the splitter is one of them. With--ig-size: var(--ig-size-medium)onbody, the splitter renders at medium (12px bar), the same as the other sized components.The default size is a different thing. It only applies when nobody sets
--ig-size, and it is already per component: the avatar defaults to small, the chip and the input group to medium, the button and the grid to large. The splitter default is small because small is the size it has today.So:
--ig-sizesee no difference. The splitter looks as it does now.--ig-size, globally or on a section that holds a splitter, get a splitter that follows it. Until now the splitter ignored it.feat(splitter): size the hitbox of the expanders to the icon box
kdinev commentedon Nov 24, 2026
@desig9stein Thanks! As we discussed in a meeting yesterday, we will have the splitter keep its current default until
23.0.0, when it will be migrated to an--ig-size-mediumdefault.