office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
30 lines • 1.01 kB
JavaScript
import { getGlobalClassNames } from '../../Styling';
var inheritFont = { fontFamily: 'inherit' };
var GlobalClassNames = {
root: 'ms-Fabric'
};
export var getStyles = function (props) {
var theme = props.theme, className = props.className, isFocusVisible = props.isFocusVisible;
var classNames = getGlobalClassNames(GlobalClassNames, theme);
return {
root: [
classNames.root,
isFocusVisible && 'is-focusVisible',
theme.fonts.medium,
{
color: theme.palette.neutralPrimary,
selectors: {
'& button': inheritFont,
'& input': inheritFont,
'& textarea': inheritFont,
':global(button)': {
overflow: 'visible',
margin: 0
}
}
},
className
]
};
};
//# sourceMappingURL=Fabric.styles.js.map