-
Notifications
You must be signed in to change notification settings - Fork 2.9k
SpinButton: Add getClassNames prop to allow complete customization of the component #3753
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
SpinButton: Add getClassNames prop to allow complete customization of the component #3753
Conversation
| "changes": [ | ||
| { | ||
| "packageName": "office-ui-fabric-react", | ||
| "comment": "SpinButton: Add getClassNAmes prop to allow complete customization of the component", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather nervous of this change. A better approach would be to avoid the getClassNames approach and use the 6.0 getStyles functional approach. We found that getClassNames required us to come up with every possible permutation of areas and states, whereas a function of state can produce a given set of area classes.
See the ghdocs/styling.md file for more description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dzearing this is another case where we need something that lets us completely override the styling in the 5.0 timeframe for Office Online.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just move it to getStyles in the 5.0 branch?
|
@montselozanod can you work with @kysedate to see how we can unblock this work? Can we perhaps go straight to the new styling API safely? |
|
@christiango sure!! I'll talk with @kysedate so we can go over this together |
Pull request checklist
$ npm run changeDescription of changes
Adding a prop to the Spin Button that allows for a complete override of the fabric styles