-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Button: Add support for adding a divider for Split Buttons (#2780)
* Add a function that allows rendering a divider between the menu button and main button for a split button * Rush change * Get split button classnames * Extract a function for rendering the divider. * Fix tslint. * Extract split button example styles to another file * Remove unused import, add missing semicolon
- Loading branch information
1 parent
4507629
commit ac16133
Showing
6 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
common/changes/office-ui-fabric-react/split-button-divider_2017-09-08-00-37.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "office-ui-fabric-react", | ||
"comment": "Button: Add support for dividers in split buttons", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "office-ui-fabric-react", | ||
"email": "christianjordangonzalez@gmail.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ages/office-ui-fabric-react/src/components/Button/examples/Button.Split.Example.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { memoizeFunction } from 'office-ui-fabric-react/lib/Utilities'; | ||
import { IButtonStyles } from 'office-ui-fabric-react/lib/Button'; | ||
|
||
export const getCustomSplitButtonStyles = memoizeFunction((): IButtonStyles => { | ||
return { | ||
splitButtonMenuButton: { backgroundColor: 'white', width: '10px' }, | ||
splitButtonMenuIcon: { fontSize: '7px' }, | ||
splitButtonDivider: { borderLeft: '1px solid #c8c8c8' } | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters