microsoft / design-to-code

A system of development tools, and utilities used à la carte or as a suite to build enterprise-grade websites and applications.
MIT License
24 stars 6 forks source link

[Feature]: Add a default unit attr for units-text-field #172

Open janechu opened 2 years ago

janechu commented 2 years ago

What package(s) should this feature be added to?

@microsoft/fast-tooling

Summary

Description

A user may expect that a unit will be assumed if none is present, such as in some design tools where px is generally assumed. This breaks the data model however, as units must be present as part of the text and cannot be assumed, so we can attempt to ameliorate this by adding the unit ourselves.

Requirements