office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
47 lines • 1.85 kB
JavaScript
import { concatStyleSets } from '../../../Styling';
import { memoizeFunction } from '../../../Utilities';
import { getStyles as getBaseButtonStyles } from '../BaseButton.styles';
import { getStyles as getSplitButtonStyles } from '../SplitButton/SplitButton.styles';
export var getStyles = memoizeFunction(function (theme, customStyles, focusInset, focusColor) {
var baseButtonStyles = getBaseButtonStyles(theme);
var baseSplitButtonStyles = getSplitButtonStyles(theme);
var commandButtonStyles = {
root: {
minWidth: '40px',
backgroundColor: theme.palette.neutralLighter,
color: theme.palette.neutralPrimary,
padding: '0 4px'
},
rootHovered: {
backgroundColor: theme.palette.neutralLight,
color: theme.palette.neutralDark
},
rootPressed: {
backgroundColor: theme.palette.neutralQuaternaryAlt,
color: theme.palette.black
},
rootChecked: {
backgroundColor: theme.palette.neutralQuaternaryAlt,
color: theme.palette.black
},
rootExpanded: {
backgroundColor: theme.palette.neutralQuaternaryAlt,
color: theme.palette.black
},
rootCheckedHovered: {
backgroundColor: theme.palette.neutralQuaternary,
color: theme.palette.black,
},
label: {
fontWeight: 'normal' // theme.fontWeights.semibold,
},
icon: {
color: theme.palette.themeDarkAlt
},
menuIcon: {
color: theme.palette.neutralSecondary
}
};
return concatStyleSets(baseButtonStyles, commandButtonStyles, baseSplitButtonStyles, customStyles);
});
//# sourceMappingURL=CommandBarButton.styles.js.map