Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorPicker: Limit alpha decimal places #5883

Merged
merged 6 commits into from
Aug 9, 2018
Merged

ColorPicker: Limit alpha decimal places #5883

merged 6 commits into from
Aug 9, 2018

Conversation

JasonGore
Copy link
Member

@JasonGore JasonGore commented Aug 9, 2018

Pull request checklist

Description of changes

Limit decimal places shown to 1.

colorpicker4

Microsoft Reviewers: Open in CodeFlow

@JasonGore
Copy link
Member Author

Actually I'm going to switch the display back to 0-100. This may be too much of a breaking change to consume.

@@ -181,7 +181,7 @@ export class ColorPickerBase extends BaseComponent<IColorPickerProps, IColorPick
r: Number(this._rText.current.value),
g: Number(this._gText.current.value),
b: Number(this._bText.current.value),
a: Number((this._aText && this._aText.current.value) || 100)
a: Number(this._aText.current.value || 100)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice cleanup

@natalieethell natalieethell self-assigned this Aug 9, 2018
@JasonGore JasonGore merged commit cfcff98 into microsoft:master Aug 9, 2018
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ColorPicker: Round alpha value
3 participants