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

[Progress] Remove style propable mixin #3233

Merged
merged 1 commit into from
Feb 8, 2016

Conversation

newoga
Copy link
Contributor

@newoga newoga commented Feb 8, 2016

These components could use some refactoring. I started some of it, but refresh-indicator in particular could be improved a lot. There is some common logic that's duplicated such as the getRelativeValue() function. Maybe one day we can consider making a single <Progress /> component that can have different prop or child implementations.

},
};

autoPrefix.set(styles.wrapper, 'transitionTimingFunction', 'linear', state.muiTheme);
Copy link
Member

Choose a reason for hiding this comment

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

current set implementation:

set(style, key, value) {
  style[key] = value;
},

just add: transitionTimingFunction: 'linear', to styles.wrapper 😁

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good call. 👍 After the migration I'd like to revisit seeing if we can get rid of all the autoPrefix calls...

@newoga
Copy link
Contributor Author

newoga commented Feb 8, 2016

  • Removed use of autoPrefix in getStyles() fn (comment)
  • Used integer instead of string with prefix for baseSize (comment)

@alitaheri
Copy link
Member

Thanks a lot 😁 All good 🍏

@oliviertassinari
Copy link
Member

@newoga Thanks!

oliviertassinari added a commit that referenced this pull request Feb 8, 2016
[Progress] Remove style propable mixin
@oliviertassinari oliviertassinari merged commit 5a08878 into mui:master Feb 8, 2016
@newoga newoga deleted the #2852/progress branch February 8, 2016 16:24
@zannager zannager added the package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants