Skip to content

Conversation

@rock3r
Copy link
Collaborator

@rock3r rock3r commented Oct 17, 2025

This fixes an issue with the secondary content (the chevron) getting squashed in split buttons, when there isn't enough space to show both the primary and secondary contents fully.

As a bonus, this also fixes:

  • The divider height is no longer capped, but scales correctly with the button's height
  • Colours were all sorts of wrong in standalone mode for buttons, especially in the disabled state (they are fine in bridge mode)
  • The semantics role of the secondary action is now the same as in Swing (button)
  • The modifier passed to split buttons is now applied in the right place, and the internal layout is simplified

The buttons showcase is also improved, now showing a space-constrained split button that did not use to work correctly, and putting all the content in flow rows so it scales better as the window is resized. The visual appearance is also tweaked to better represent the information hierarchy.

Screen.Recording.2025-10-17.at.19.20.41.mov

Before

  Screenshot
Light before light
Dark before dark

After

Swing Jewel
swing light jewel light after
swing dark jewel dark after

Release notes

Bug fixes

  • Fixed a bug with *SplitButtons where the chevron would get squashed if the button wasn't wide enough to fit both the main and secondary content
  • Fixed a bug with *SplitButtons where the divider height was limited, and would not grow with the button's height if it gets taller than the minimum height
  • Fixed several bugs with *Button colours in standalone, especially in the disabled state, to realign them with Swing
  • Fixed the semantics role of the secondary action in *SplitButtons to be the same as in Swing
  • Fixed the modifier passed to *SplitButtons being applied to the wrong level, causing all sorts of unexpected behaviour (e.g., if you set a height, the button's visual height would not grow)

@rock3r rock3r self-assigned this Oct 17, 2025
@rock3r rock3r added the Jewel label Oct 17, 2025
@rock3r
Copy link
Collaborator Author

rock3r commented Oct 22, 2025

(I'll rebase to get the Metalava fixes when I get the second review)

This fixes an issue with the secondary content (the chevron)
getting squashed in split buttons, when there isn't enough
space to show both the primary and secondary contents fully.

As a bonus, this also fixes:
 * The divider height is no longer capped, but scales
   correctly with the button's height
 * Colours were all sorts of wrong in standalone mode for
   buttons, especially in the disabled state (they are fine
   in bridge mode)
 * The semantics role of the secondary action is now the same
   as in Swing (button)
 * The modifier passed to split buttons is now applied in
   the right place, and the internal layout is simplified

The buttons showcase is also improved, now showing a space-
constrained split button that did not use to work correctly,
and putting all the content in flow rows so it scales better
as the window is resized. The visual appearance is also
tweaked to better represent the information hierarchy.
@rock3r rock3r force-pushed the sebp/JEWEL-1061_fix-split-button-chevron branch from 99556ed to 922205c Compare October 23, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants