New MetricSpinButton implementation

A “metric” spinbutton is a spinbutton that has an associated unit: cm/inch, points and percentage are common units used. The previous implementation used the standard spinbuttons and overlaid the unit some distance from the trailing edge so it could be seen and not obscure the value. Putting the unit inside the spinbutton edit area wasn’t possible.
Before
After

With the new implementation (https://github.com/CollaboraOnline/online/pull/15022) which creates its own spinbutton-alike widget, then after much to and fro with design and testing, we now have a spinbutton with similar behavior and similar accessibility properties as the original but where the units can be shown inside the spinbutton in a more natural way.

Leave a Reply