-
Notifications
You must be signed in to change notification settings - Fork 12
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
Address uses of any
for TButtonAppearanceStrategy and TContentAppearanceStrategy
#754
Comments
After making the commits shown above, I closely compared the buttons to those found in published versions of the sims, and they look a little different. I'm not sure that this is the result of my changes, because I didn't check prior to making the changes, but I could back them out and find out for sure if necessary. But the differences are fairly subtle, and might not really matter, so I'm going to ask around a bit before spending much time on this. Here is a before-and-after comparison for some buttons Molecules and Light: MAL 1.5.3: MAL on master as of today: These are from Chrome version 105.0.5195.127 . The stroke on the round buttons looks a bit more pronounced, and on the rectangular button it looks a little less pronounced. |
I reviewed the visual changes with @arouinfar and @pixelzoom (in separate discussions), and we all agreed that they are insignificant enough that we don't need to investigate why the differences exist. Assigning to @pixelzoom to review. |
The examples I reviewed with @jbphet didn't include a case where two buttons are in direct contact, like the zoom buttons The lack of a stroke separating the zoom buttons seems problematic to me. |
The problem with missing strokes for Zoom buttons using the flat appearance strategy was because in the course of porting this code to TypeScript, I'd changed to code to only create a default stroke if the provided stroke was @pixelzoom - Please continue the review and let me know if you see anything in the code or the sims that look problematic. When you're done, assign this back to me and I'll request that QA go through the sims and look for any other cases of buttons that look like they are missing strokes. |
I took a quick look through the code and commits, and I don't see anything that looks problematic. The example in natural-selection and bamboo demo also look OK now. Back to @jbphet in case there's anything else to do here. |
Thanks for the review, I think that should do it. Closing. |
There are several uses of
any
in sun, all related to TButtonAppearanceStrategy and TContentAppearanceStrategy (types created by @zepumph). These should be replaced with correct types.Occurrences of
any
in:... and possibly elsewhere?
Assigning to @zepumph and @jbphet (the original author).
The text was updated successfully, but these errors were encountered: