office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
51 lines • 2.14 kB
JavaScript
define(["require", "exports", "../../../Styling", "../../../Utilities", "../BaseButton.styles", "../SplitButton/SplitButton.styles"], function (require, exports, Styling_1, Utilities_1, BaseButton_styles_1, SplitButton_styles_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStyles = Utilities_1.memoizeFunction(function (theme, customStyles) {
var _a;
var baseButtonStyles = BaseButton_styles_1.getStyles(theme);
var splitButtonStyles = SplitButton_styles_1.getStyles(theme);
var palette = theme.palette, semanticColors = theme.semanticColors;
var iconButtonStyles = {
root: {
padding: '0 4px',
minWidth: '32px',
height: '32px',
backgroundColor: 'transparent',
border: 'none',
color: semanticColors.link
},
rootHovered: {
color: palette.themeDarkAlt,
backgroundColor: palette.neutralLighter,
selectors: (_a = {},
_a[Styling_1.HighContrastSelector] = {
borderColor: 'Highlight',
color: 'Highlight'
},
_a)
},
rootPressed: {
color: palette.themeDark,
backgroundColor: palette.neutralLight
},
rootExpanded: {
color: palette.themeDark,
backgroundColor: palette.neutralLight
},
rootChecked: {
color: palette.themeDark,
backgroundColor: palette.neutralLight
},
rootCheckedHovered: {
color: palette.themeDark,
backgroundColor: palette.neutralQuaternaryAlt
},
rootDisabled: {
color: palette.neutralTertiaryAlt
}
};
return Styling_1.concatStyleSets(baseButtonStyles, iconButtonStyles, splitButtonStyles, customStyles);
});
});
//# sourceMappingURL=IconButton.styles.js.map