(props)
| 15898 | //adapted from https://github.com/OfficeDev/office-ui-fabric-react/blob/master/packages/fluent-theme/src/fluent/styles/CommandBarButton.styles.ts |
| 15899 | var _base = require("../base"); |
| 15900 | const CommandBarButtonStyles = (props)=>{ |
| 15901 | const { theme } = props; |
| 15902 | if (!theme) throw new Error("Theme is undefined or null."); |
| 15903 | const { palette , semanticColors } = theme; |
| 15904 | const BUTTON_ICON_CLASSNAME = ".ms-Button-icon"; |
| 15905 | return { |
| 15906 | root: [ |
| 15907 | Object.assign({}, (0, _base.base).fluentUI.getFocusStyle(theme, { |
| 15908 | inset: 2 |
| 15909 | })), |
| 15910 | { |
| 15911 | backgroundColor: palette.white |
| 15912 | } |
| 15913 | ], |
| 15914 | rootHovered: { |
| 15915 | backgroundColor: palette.neutralLighter, |
| 15916 | selectors: { |
| 15917 | [BUTTON_ICON_CLASSNAME]: { |
| 15918 | color: palette.themeDarkAlt |
| 15919 | } |
| 15920 | } |
| 15921 | }, |
| 15922 | rootPressed: { |
| 15923 | backgroundColor: palette.neutralLight, |
| 15924 | color: palette.neutralDark, |
| 15925 | selectors: { |
| 15926 | [BUTTON_ICON_CLASSNAME]: { |
| 15927 | color: palette.themeDark |
| 15928 | } |
| 15929 | } |
| 15930 | }, |
| 15931 | rootChecked: { |
| 15932 | backgroundColor: palette.neutralLight, |
| 15933 | color: palette.neutralDark, |
| 15934 | selectors: { |
| 15935 | [BUTTON_ICON_CLASSNAME]: { |
| 15936 | color: palette.themeDark |
| 15937 | } |
| 15938 | } |
| 15939 | }, |
| 15940 | rootCheckedHovered: { |
| 15941 | backgroundColor: palette.neutralQuaternaryAlt, |
| 15942 | color: palette.neutralDark |
| 15943 | }, |
| 15944 | rootExpanded: { |
| 15945 | color: palette.neutralDark, |
| 15946 | backgroundColor: palette.neutralLight, |
| 15947 | selectors: { |
| 15948 | [BUTTON_ICON_CLASSNAME]: { |
| 15949 | color: palette.themeDark |
| 15950 | } |
| 15951 | } |
| 15952 | }, |
| 15953 | rootExpandedHovered: { |
| 15954 | background: palette.neutralQuaternaryAlt |
| 15955 | }, |
| 15956 | rootDisabled: { |
| 15957 | backgroundColor: palette.white, |
nothing calls this directly
no outgoing calls
no test coverage detected