office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
66 lines • 2.1 kB
JavaScript
import { concatStyleSets, HighContrastSelector } from '../../../Styling';
import { memoizeFunction } from '../../../Utilities';
import { getStyles as getBaseButtonStyles } from '../BaseButton.styles';
var DEFAULT_BUTTON_HEIGHT = '40px';
var DEFAULT_PADDING = '0 4px';
export var getStyles = memoizeFunction(function (theme, customStyles) {
var baseButtonStyles = getBaseButtonStyles(theme);
var actionButtonStyles = {
root: {
padding: DEFAULT_PADDING,
height: DEFAULT_BUTTON_HEIGHT,
color: theme.palette.neutralPrimary,
backgroundColor: 'transparent',
border: 'none'
},
rootHovered: {
color: theme.palette.themePrimary,
selectors: (_a = {},
_a[HighContrastSelector] = {
borderColor: 'Highlight',
color: 'Highlight'
},
_a)
},
iconHovered: {
color: theme.palette.themePrimary
},
rootPressed: {
color: theme.palette.black
},
rootExpanded: {
color: theme.palette.themePrimary
},
iconPressed: {
color: theme.palette.themeDarker
},
rootDisabled: {
color: theme.palette.neutralTertiary,
backgroundColor: 'transparent'
},
rootChecked: {
color: theme.palette.black
},
iconChecked: {
color: theme.palette.themeDarker
},
flexContainer: {
justifyContent: 'flex-start'
},
icon: {
color: theme.palette.themeDarkAlt
},
iconDisabled: {
color: 'inherit'
},
menuIcon: {
color: theme.palette.neutralSecondary
},
textContainer: {
flexGrow: 0
}
};
return concatStyleSets(baseButtonStyles, actionButtonStyles, customStyles);
var _a;
});
//# sourceMappingURL=ActionButton.styles.js.map