Skip to content

Splitter: support small, medium and large sizes through --ig-size #18013

Done

Description

@desig9stein

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.scss reads one size token (4px) from the theme schema. The bar is 4px plus 1px of padding on each side, so it is 6px thick at every size.
  • The drag handle is 4px thick with a 2px radius. The expanders are CSS border triangles built from the same 4px.
  • igx-splitter does not include sizable() and sets no --component-size, so --ig-size on 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 width in a horizontal splitter and its height in 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-size looks 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-theming has a single size: rem(4px) and no default-size. It needs default-size: 1 and the three steps before this can be built here.
  • _base.scss computes --splitter-size at compile time from the size token, and themes/shared/indigo.scss uses it for the idle scale (1 / var(--splitter-size)) and the hitbox. Both have to follow the current size.
  • The expander hitboxes (::before on igx-splitter-bar__expander) are multiples of the size token and have to scale with it.
  • The handoff draws the expanders as the arrow_drop_up / arrow_drop_down icons. The component draws border triangles. Either the triangles scale with the icon size, or the expanders become icons.

Open questions for design:

  1. The gap is 46px at Large and 48px at Small and Medium. Is 46px intended?
  2. The Indigo expander is 14px, 16px, 24px. Is 24px intended at Large?
  3. 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

  1. self-assigned this
    on Nov 19, 2026
  2. kdinev commented on Nov 19, 2026

    @kdinev
    Member

    @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);?

  3. desig9stein commented on Nov 19, 2026

    @desig9stein
    ContributorAuthor

    @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);?

    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.

  4. kdinev commented on Nov 23, 2026

    @kdinev
    Member

    @desig9stein So this would mean we don't have a uniform default size across all components and a global override like this one:

    body {
      --ig-size: var(--ig-size-medium);
    }

    would affect some components, but others not?

  5. desig9stein commented on Nov 23, 2026

    @desig9stein
    ContributorAuthor

    @desig9stein So this would mean we don't have a uniform default size across all components and a global override like this one:

    body {
    --ig-size: var(--ig-size-medium);
    }
    would affect some components, but others not?

    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) on body, 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:

    • Apps that do not set --ig-size see no difference. The splitter looks as it does now.
    • Apps that set --ig-size, globally or on a section that holds a splitter, get a splitter that follows it. Until now the splitter ignored it.
  6. added a commit that references this issue on Nov 23, 2026
    12c50c0
  7. kdinev commented on Nov 24, 2026

    @kdinev
    Member

    @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-medium default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions