The output.c-attr-input__value is given a class based on whether the numeric value of input.c-attr-input__field is positive or negative, but the value is typecast by assumption. See:
Instead, there should be a shared function that checks type of input. If type is number or range, only then should code set/assign class according to numeric value.
The
output.c-attr-input__value
is given a class based on whether the numeric value ofinput.c-attr-input__field
is positive or negative, but the value is typecast by assumption. See:plain
implementation's blind use ofassignClassFromValue
react
implementation's blind use ofsetSignClassName
Instead, there should be a shared function that checks type of input. If type is
number
orrange
, only then should code set/assign class according to numeric value.Known Issues
plain
markupdata-output-for="card-ident-element"
receives irrelevantis-positive|negative
classPotential Issues
output
ofAttributeInput
were not numeric, then it would receive irrelevantis-positive|negative
class