You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LevelThermometer component uses a hard coded value to determine the scale of the overall thermometer. If you change the pointsToLevels and maxLevel values in the constants file, the LevelThermometer will render incorrectly (since it's still referencing the hard coded value).
The LevelThermometer component uses a hard coded value to determine the scale of the overall thermometer. If you change the
pointsToLevels
andmaxLevel
values in the constants file, the LevelThermometer will render incorrectly (since it's still referencing the hard coded value).Locations where
maxLevel
is hard coded instead of referenced.https://github.com/Medium/snowflake/blob/master/components/LevelThermometer.js#L32
https://github.com/Medium/snowflake/blob/master/components/PointSummaries.js#L25
Example
Updating the following values in
constants.js
results in a poorly formatted thermometer.The text was updated successfully, but these errors were encountered: