Ui Fabirc主题按钮BackgroundDisabled不起作用

时间:2019-11-26 06:13:38

标签: office-ui-fabric

import theme from "../test.scss";

semanticColors: {
            bodyText: theme.neutralPrimary,
            buttonText: theme.grey01,
            buttonBorder: theme.grey01,
            buttonBackgroundHovered: theme.grey05,
            buttonBackgroundPressed: theme.grey04,
            buttonBackgroundDisabled: theme.blue,
            buttonTextDisabled: theme.grey03,
            buttonBorderDisabled: theme.grey03,
            primaryButtonBackgroundPressed: theme.red,
            primaryButtonBackgroundHovered: theme.red,
            primaryButtonBackgroundDisabled: theme.grey03,
            primaryButtonTextDisabled: theme.red,
            // disabledBackground: theme.grey03
        },

似乎所有的buttonbackground样式都不起作用,我使用disableBackground或buttonText可以看到效果,为什么设置按钮背景不起作用?

非常感谢您的帮助。

0 个答案:

没有答案