UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

45 lines 1.68 kB
import { concatStyleSets, HighContrastSelector } 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) { var baseButtonStyles = getBaseButtonStyles(theme); var splitButtonStyles = getSplitButtonStyles(theme); var palette = theme.palette, semanticColors = theme.semanticColors; var iconButtonStyles = { root: { padding: '0 4px', width: '32px', height: '32px', backgroundColor: 'transparent', border: 'none' }, rootHovered: { color: palette.themeDarker, selectors: (_a = {}, _a[HighContrastSelector] = { borderColor: 'Highlight', color: 'Highlight' }, _a) }, rootPressed: { color: palette.themePrimary }, rootExpanded: { color: palette.themePrimary }, rootChecked: { backgroundColor: semanticColors.buttonBackgroundChecked }, rootCheckedHovered: { backgroundColor: semanticColors.buttonBackgroundHovered }, rootDisabled: { color: semanticColors.disabledText } }; return concatStyleSets(baseButtonStyles, iconButtonStyles, splitButtonStyles, customStyles); var _a; }); //# sourceMappingURL=IconButton.styles.js.map