@fluentui/react-button 9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 → 9.75.2-experimental.css-modules.20261113-ba13c87438.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -12
- package/README.md +6 -6
- package/lib/components/Button/Button.module.css +325 -326
- package/lib/components/CompoundButton/CompoundButton.module.css +110 -116
- package/lib/components/MenuButton/MenuButton.module.css +54 -57
- package/lib/components/SplitButton/SplitButton.module.css +57 -60
- package/lib/components/ToggleButton/ToggleButton.module.css +180 -172
- package/lib-commonjs/components/Button/Button.module.css +325 -326
- package/lib-commonjs/components/CompoundButton/CompoundButton.module.css +110 -116
- package/lib-commonjs/components/MenuButton/MenuButton.module.css +54 -57
- package/lib-commonjs/components/SplitButton/SplitButton.module.css +57 -60
- package/lib-commonjs/components/ToggleButton/ToggleButton.module.css +180 -172
- package/package.json +8 -8
|
@@ -1,143 +1,137 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.icon {
|
|
6
|
-
font-size: calc(var(--fontSizeBase500) * 2);
|
|
7
|
-
height: calc(var(--fontSizeBase500) * 2);
|
|
8
|
-
width: calc(var(--fontSizeBase500) * 2);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
.root {
|
|
2
|
+
height: auto;
|
|
3
|
+
}
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
.icon {
|
|
6
|
+
font-size: calc(var(--fontSizeBase500) * 2);
|
|
7
|
+
height: calc(var(--fontSizeBase500) * 2);
|
|
8
|
+
width: calc(var(--fontSizeBase500) * 2);
|
|
9
|
+
}
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
.root:where(.outline, .secondary, .subtle, .transparent) :global(.fui-CompoundButton__secondaryContent) {
|
|
12
|
+
color: var(--colorNeutralForeground2);
|
|
13
|
+
}
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
15
|
+
.root:hover :global(.fui-CompoundButton__secondaryContent) {
|
|
16
|
+
color: var(--colorNeutralForeground2Hover);
|
|
17
|
+
}
|
|
24
18
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
30
|
-
}
|
|
19
|
+
.root:hover:active :global(.fui-CompoundButton__secondaryContent),
|
|
20
|
+
.root:active:focus-visible :global(.fui-CompoundButton__secondaryContent) {
|
|
21
|
+
color: var(--colorNeutralForeground2Pressed);
|
|
22
|
+
}
|
|
31
23
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
.primary :global(.fui-CompoundButton__secondaryContent),
|
|
25
|
+
.primary:hover :global(.fui-CompoundButton__secondaryContent),
|
|
26
|
+
.primary:hover:active :global(.fui-CompoundButton__secondaryContent),
|
|
27
|
+
.primary:active:focus-visible :global(.fui-CompoundButton__secondaryContent) {
|
|
28
|
+
color: var(--colorNeutralForegroundOnBrand);
|
|
29
|
+
}
|
|
35
30
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
31
|
+
.transparent:hover :global(.fui-CompoundButton__secondaryContent) {
|
|
32
|
+
color: var(--colorNeutralForeground2BrandHover);
|
|
33
|
+
}
|
|
40
34
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
.transparent:hover:active :global(.fui-CompoundButton__secondaryContent),
|
|
36
|
+
.transparent:active:focus-visible :global(.fui-CompoundButton__secondaryContent) {
|
|
37
|
+
color: var(--colorNeutralForeground2BrandPressed);
|
|
38
|
+
}
|
|
45
39
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
.small {
|
|
41
|
+
padding: var(--spacingVerticalS) var(--spacingHorizontalS) var(--spacingVerticalMNudge);
|
|
42
|
+
font-size: var(--fontSizeBase300);
|
|
43
|
+
line-height: var(--lineHeightBase300);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.medium {
|
|
47
|
+
padding: calc(var(--spacingVerticalL) - var(--strokeWidthThick)) var(--spacingHorizontalM) var(--spacingVerticalL);
|
|
48
|
+
font-size: var(--fontSizeBase300);
|
|
49
|
+
line-height: var(--lineHeightBase300);
|
|
50
|
+
}
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
.large {
|
|
53
|
+
padding: calc(var(--spacingVerticalXL) - var(--strokeWidthThick)) var(--spacingHorizontalL) var(--spacingVerticalXL);
|
|
54
|
+
font-size: var(--fontSizeBase400);
|
|
55
|
+
line-height: var(--lineHeightBase400);
|
|
56
|
+
}
|
|
55
57
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
.disabled :global(.fui-CompoundButton__secondaryContent),
|
|
59
|
+
.disabled:hover :global(.fui-CompoundButton__secondaryContent),
|
|
60
|
+
.disabled:hover:active :global(.fui-CompoundButton__secondaryContent),
|
|
61
|
+
.disabled:active:focus-visible :global(.fui-CompoundButton__secondaryContent) {
|
|
62
|
+
color: var(--colorNeutralForegroundDisabled);
|
|
63
|
+
}
|
|
60
64
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
.iconOnly {
|
|
66
|
+
padding: var(--spacingVerticalSNudge);
|
|
67
|
+
max-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalXS));
|
|
68
|
+
min-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalXS));
|
|
65
69
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
&:where(.small) {
|
|
71
|
+
padding: var(--spacingVerticalXS);
|
|
72
|
+
max-width: calc(var(--spacingHorizontalXXL) * 2);
|
|
73
|
+
min-width: calc(var(--spacingHorizontalXXL) * 2);
|
|
69
74
|
}
|
|
70
75
|
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
76
|
+
&:where(.large) {
|
|
77
|
+
padding: var(--spacingVerticalS);
|
|
78
|
+
max-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalS));
|
|
79
|
+
min-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalS));
|
|
76
80
|
}
|
|
81
|
+
}
|
|
77
82
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
min-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalXS));
|
|
82
|
-
|
|
83
|
-
&:where(.small) {
|
|
84
|
-
padding: var(--spacingVerticalXS);
|
|
85
|
-
max-width: calc(var(--spacingHorizontalXXL) * 2);
|
|
86
|
-
min-width: calc(var(--spacingHorizontalXXL) * 2);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&:where(.large) {
|
|
90
|
-
padding: var(--spacingVerticalS);
|
|
91
|
-
max-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalS));
|
|
92
|
-
min-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalS));
|
|
93
|
-
}
|
|
94
|
-
}
|
|
83
|
+
.before {
|
|
84
|
+
margin-inline-end: var(--spacingHorizontalM);
|
|
85
|
+
}
|
|
95
86
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
87
|
+
.after {
|
|
88
|
+
margin-inline-start: var(--spacingHorizontalM);
|
|
89
|
+
}
|
|
99
90
|
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
.contentContainer {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
text-align: start;
|
|
95
|
+
|
|
96
|
+
&:where(:dir(rtl)) {
|
|
97
|
+
text-align: right;
|
|
102
98
|
}
|
|
99
|
+
}
|
|
103
100
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
.secondaryContent {
|
|
102
|
+
line-height: 100%;
|
|
103
|
+
font-weight: var(--fontWeightRegular);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:where(.small, .medium) .secondaryContent {
|
|
107
|
+
font-size: var(--fontSizeBase200);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:where(.large) .secondaryContent {
|
|
111
|
+
font-size: var(--fontSizeBase300);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (forced-colors: active) {
|
|
115
|
+
.root:hover :global(.fui-CompoundButton__secondaryContent),
|
|
116
|
+
.root:hover:active :global(.fui-CompoundButton__secondaryContent),
|
|
117
|
+
.root:active:focus-visible :global(.fui-CompoundButton__secondaryContent) {
|
|
118
|
+
color: Highlight;
|
|
119
|
+
}
|
|
108
120
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
121
|
+
.primary :global(.fui-CompoundButton__secondaryContent) {
|
|
122
|
+
color: HighlightText;
|
|
112
123
|
}
|
|
113
124
|
|
|
114
|
-
.
|
|
115
|
-
|
|
116
|
-
|
|
125
|
+
.subtle:hover :global(.fui-CompoundButton__secondaryContent),
|
|
126
|
+
.subtle:hover:active :global(.fui-CompoundButton__secondaryContent),
|
|
127
|
+
.subtle:active:focus-visible :global(.fui-CompoundButton__secondaryContent) {
|
|
128
|
+
color: Canvas;
|
|
117
129
|
}
|
|
118
130
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.primary .secondaryContent {
|
|
127
|
-
color: HighlightText;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.subtle:hover .secondaryContent,
|
|
131
|
-
.subtle:hover:active .secondaryContent,
|
|
132
|
-
.subtle:active:focus-visible .secondaryContent {
|
|
133
|
-
color: Canvas;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.disabled .secondaryContent,
|
|
137
|
-
.disabled:hover .secondaryContent,
|
|
138
|
-
.disabled:hover:active .secondaryContent,
|
|
139
|
-
.disabled:active:focus-visible .secondaryContent {
|
|
140
|
-
color: GrayText;
|
|
141
|
-
}
|
|
131
|
+
.disabled :global(.fui-CompoundButton__secondaryContent),
|
|
132
|
+
.disabled:hover :global(.fui-CompoundButton__secondaryContent),
|
|
133
|
+
.disabled:hover:active :global(.fui-CompoundButton__secondaryContent),
|
|
134
|
+
.disabled:active:focus-visible :global(.fui-CompoundButton__secondaryContent) {
|
|
135
|
+
color: GrayText;
|
|
142
136
|
}
|
|
143
137
|
}
|
|
@@ -1,75 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
3
|
-
:
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
.expanded {
|
|
2
|
+
:global(.fui-Icon-filled) {
|
|
3
|
+
display: inline;
|
|
4
|
+
}
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
:global(.fui-Icon-regular) {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&:where(.outline) {
|
|
11
|
+
border-width: var(--strokeWidthThicker);
|
|
12
|
+
}
|
|
10
13
|
|
|
14
|
+
&:where(.subtle) {
|
|
15
|
+
background-color: var(--colorSubtleBackgroundSelected);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (forced-colors: none) {
|
|
11
19
|
&:where(.outline) {
|
|
12
|
-
border-
|
|
20
|
+
border-color: var(--colorNeutralStroke1Selected);
|
|
21
|
+
color: var(--colorNeutralForeground1Selected);
|
|
13
22
|
}
|
|
14
23
|
|
|
15
|
-
&:where(.
|
|
16
|
-
background-color: var(--
|
|
24
|
+
&:where(.primary) {
|
|
25
|
+
background-color: var(--colorBrandBackgroundSelected);
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&:where(.primary) {
|
|
26
|
-
background-color: var(--colorBrandBackgroundSelected);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&:where(.secondary) {
|
|
30
|
-
background-color: var(--colorNeutralBackground1Selected);
|
|
31
|
-
border-color: var(--colorNeutralStroke1Selected);
|
|
32
|
-
color: var(--colorNeutralForeground1Selected);
|
|
33
|
-
}
|
|
28
|
+
&:where(.secondary) {
|
|
29
|
+
background-color: var(--colorNeutralBackground1Selected);
|
|
30
|
+
border-color: var(--colorNeutralStroke1Selected);
|
|
31
|
+
color: var(--colorNeutralForeground1Selected);
|
|
32
|
+
}
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
&:where(.subtle) {
|
|
35
|
+
color: var(--colorNeutralForeground2Selected);
|
|
36
|
+
}
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
38
|
+
&:where(.transparent) {
|
|
39
|
+
background-color: var(--colorTransparentBackgroundSelected);
|
|
40
|
+
color: var(--colorNeutralForeground2BrandSelected);
|
|
43
41
|
}
|
|
44
42
|
}
|
|
43
|
+
}
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
.menuIcon {
|
|
46
|
+
line-height: 0;
|
|
47
|
+
margin-inline-start: var(--spacingHorizontalXS);
|
|
48
|
+
}
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
:where(.iconOnly) .menuIcon {
|
|
51
|
+
margin-inline-start: 0;
|
|
52
|
+
}
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
54
|
+
:where(.small, .medium) .menuIcon {
|
|
55
|
+
font-size: var(--fontSizeBase200);
|
|
56
|
+
height: var(--fontSizeBase200);
|
|
57
|
+
line-height: var(--lineHeightBase200);
|
|
58
|
+
width: var(--fontSizeBase200);
|
|
59
|
+
}
|
|
62
60
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
:where(.large) .menuIcon {
|
|
62
|
+
font-size: var(--fontSizeBase400);
|
|
63
|
+
height: var(--fontSizeBase400);
|
|
64
|
+
line-height: var(--lineHeightBase400);
|
|
65
|
+
width: var(--fontSizeBase400);
|
|
66
|
+
}
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
68
|
+
@media (forced-colors: active) {
|
|
69
|
+
:where(.expanded):where(.outline, .secondary, .subtle, .transparent) .icon:hover {
|
|
70
|
+
color: Highlight;
|
|
74
71
|
}
|
|
75
72
|
}
|
|
@@ -1,73 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
.root:where(.outline, .primary, .secondary, .subtle, .transparent) {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
justify-content: stretch;
|
|
4
|
+
position: relative;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
.root :global(.fui-SplitButton__primaryActionButton),
|
|
9
|
+
.primaryActionButton[data-fui-focus-visible] {
|
|
10
|
+
border-start-end-radius: 0;
|
|
11
|
+
border-end-end-radius: 0;
|
|
12
|
+
}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
14
|
+
.root :global(.fui-SplitButton__menuButton),
|
|
15
|
+
.menuButton[data-fui-focus-visible] {
|
|
16
|
+
border-inline-start-width: 0;
|
|
17
|
+
border-start-start-radius: 0;
|
|
18
|
+
border-end-start-radius: 0;
|
|
19
|
+
}
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
.root :global(.fui-SplitButton__menuButton) {
|
|
22
|
+
/* WCAG's minimum adjacent pointer target is 24 CSS pixels, independent of theme spacing. */
|
|
23
|
+
min-width: 24px;
|
|
24
|
+
}
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
.primary :global(.fui-SplitButton__primaryActionButton),
|
|
27
|
+
.primary:hover :global(.fui-SplitButton__primaryActionButton),
|
|
28
|
+
.primary:hover:active :global(.fui-SplitButton__primaryActionButton),
|
|
29
|
+
.primary:active:focus-visible :global(.fui-SplitButton__primaryActionButton) {
|
|
30
|
+
border-inline-end-color: var(--colorNeutralStrokeOnBrand);
|
|
31
|
+
}
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
.root:where(.subtle, .transparent) :global(.fui-SplitButton__primaryActionButton) {
|
|
34
|
+
border-inline-end-color: var(--colorTransparentBackground);
|
|
35
|
+
}
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
.root:where(.subtle, .transparent):hover :global(.fui-SplitButton__primaryActionButton) {
|
|
38
|
+
border-inline-end-color: var(--colorTransparentBackgroundHover);
|
|
39
|
+
}
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
.root:where(.subtle, .transparent):hover:active :global(.fui-SplitButton__primaryActionButton),
|
|
42
|
+
.root:where(.subtle, .transparent):active:focus-visible :global(.fui-SplitButton__primaryActionButton) {
|
|
43
|
+
border-inline-end-color: var(--colorTransparentBackgroundPressed);
|
|
44
|
+
}
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
.disabled :global(.fui-SplitButton__primaryActionButton),
|
|
47
|
+
.disabled:hover :global(.fui-SplitButton__primaryActionButton),
|
|
48
|
+
.disabled:hover:active :global(.fui-SplitButton__primaryActionButton),
|
|
49
|
+
.disabled:active:focus-visible :global(.fui-SplitButton__primaryActionButton) {
|
|
50
|
+
border-inline-end-color: var(--colorNeutralStrokeDisabled);
|
|
51
|
+
}
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
@media (forced-colors: active) {
|
|
54
|
+
.primary :global(.fui-SplitButton__primaryActionButton) {
|
|
55
|
+
border-inline-end-color: HighlightText;
|
|
56
|
+
}
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
.primary:hover :global(.fui-SplitButton__primaryActionButton),
|
|
59
|
+
.primary:hover:active :global(.fui-SplitButton__primaryActionButton),
|
|
60
|
+
.primary:active:focus-visible :global(.fui-SplitButton__primaryActionButton) {
|
|
61
|
+
border-inline-end-color: Highlight;
|
|
62
|
+
}
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
64
|
+
.disabled :global(.fui-SplitButton__primaryActionButton),
|
|
65
|
+
.disabled:hover :global(.fui-SplitButton__primaryActionButton),
|
|
66
|
+
.disabled:hover:active :global(.fui-SplitButton__primaryActionButton),
|
|
67
|
+
.disabled:active:focus-visible :global(.fui-SplitButton__primaryActionButton) {
|
|
68
|
+
border-inline-end-color: GrayText;
|
|
72
69
|
}
|
|
73
70
|
}
|