Skip to content

Conversation

@tf
Copy link
Member

@tf tf commented Jan 30, 2026

REDMINE-21218

tf added 9 commits January 30, 2026 10:11
Allow typography sizes to be defined for individual components within
content elements (e.g. counterNumber, counterDescription) rather than
only at the content element type level.

REDMINE-21218
The counter component's size controls have limited horizontal space.
Using abbreviated labels (XL, L, M, S, XS) instead of full names
(Extra large, Large, etc.) makes the slider more compact.

REDMINE-21218
Slider inputs read more naturally going from small to large
(left to right). The new order option on getTypographySizes
allows callers to request ascending order instead of the
default descending.

REDMINE-21218
Allow editors to independently adjust font sizes for number, unit,
and description in the counter content element via slider inputs.
Sizes are defined through theme typography options with responsive
breakpoints.

- Define 9-step scale (xxxs to xxxl) for counterNumber typography
- Define 3-step scale (xs, sm, md) for counterUnit using relative em units
- Define 3-step scale (sm, md, lg) for counterDescription

REDMINE-21218
Allow editors to set independent colors for number, unit, and
description in the counter content element.

REDMINE-21218
Existing counter elements use the textSize property with values like
'large', 'medium', 'small', 'verySmall'. Map these to the new
numberSize values based on equivalent font sizes to ensure backwards
compatibility in both frontend rendering and editor UI.

REDMINE-21218
Allow overriding the automatic centering of wide counters with
explicit left, center, centerRagged, or right alignment. Auto
(default) preserves the existing behavior based on element width
and section layout.

REDMINE-21218
Keep the unit together with the number on the same line to avoid
awkward line breaks in the middle of values like "$100" or "100%".

REDMINE-21218
Prevent layout shifts during counting animation by rendering a hidden
placeholder with the target value. Uses CSS grid to overlay the
current value on top of the placeholder, ensuring stable dimensions
throughout the animation.

REDMINE-21218
@tf tf force-pushed the counter-improvements branch 2 times, most recently from e7ce7d2 to f63fbb4 Compare January 30, 2026 11:12
tf added 2 commits January 30, 2026 12:28
Introduce a new countingAnimation setting with options none, plain,
and wheel (rolling digits). This separates the animation style from
the counting speed, allowing users to choose both independently.

The existing countingSpeed setting now only controls speed when an
animation is enabled. Backwards compatibility is preserved: entries
with only countingSpeed set will default to plain animation.

REDMINE-21218
Cover wheel animation, separate size/color controls, and
text alignment in visual regression tests.

REDMINE-21218
@tf tf force-pushed the counter-improvements branch from f63fbb4 to 4eef373 Compare January 30, 2026 11:28
@tf tf merged commit 9bdd245 into codevise:master Jan 30, 2026
18 checks passed
@tf tf added this to the v17.2 milestone Jan 30, 2026
@tf tf deleted the counter-improvements branch January 30, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant