@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.
@@ -1,143 +1,137 @@
1
- @layer fluent {
2
- .root {
3
- height: auto;
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
- .root:where(.outline, .secondary, .subtle, .transparent) .secondaryContent {
13
- color: var(--colorNeutralForeground2);
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
- .root:hover .secondaryContent {
17
- color: var(--colorNeutralForeground2Hover);
18
- }
11
+ .root:where(.outline, .secondary, .subtle, .transparent) :global(.fui-CompoundButton__secondaryContent) {
12
+ color: var(--colorNeutralForeground2);
13
+ }
19
14
 
20
- .root:hover:active .secondaryContent,
21
- .root:active:focus-visible .secondaryContent {
22
- color: var(--colorNeutralForeground2Pressed);
23
- }
15
+ .root:hover :global(.fui-CompoundButton__secondaryContent) {
16
+ color: var(--colorNeutralForeground2Hover);
17
+ }
24
18
 
25
- .primary .secondaryContent,
26
- .primary:hover .secondaryContent,
27
- .primary:hover:active .secondaryContent,
28
- .primary:active:focus-visible .secondaryContent {
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
- .transparent:hover .secondaryContent {
33
- color: var(--colorNeutralForeground2BrandHover);
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
- .transparent:hover:active .secondaryContent,
37
- .transparent:active:focus-visible .secondaryContent {
38
- color: var(--colorNeutralForeground2BrandPressed);
39
- }
31
+ .transparent:hover :global(.fui-CompoundButton__secondaryContent) {
32
+ color: var(--colorNeutralForeground2BrandHover);
33
+ }
40
34
 
41
- .small {
42
- padding: var(--spacingVerticalS) var(--spacingHorizontalS) var(--spacingVerticalMNudge);
43
- font-size: var(--fontSizeBase300);
44
- line-height: var(--lineHeightBase300);
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
- .secondaryContent {
47
- font-size: var(--fontSizeBase200);
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
- .medium {
52
- padding: calc(var(--spacingVerticalL) - var(--strokeWidthThick)) var(--spacingHorizontalM) var(--spacingVerticalL);
53
- font-size: var(--fontSizeBase300);
54
- line-height: var(--lineHeightBase300);
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
- .secondaryContent {
57
- font-size: var(--fontSizeBase200);
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
- .large {
62
- padding: calc(var(--spacingVerticalXL) - var(--strokeWidthThick)) var(--spacingHorizontalL) var(--spacingVerticalXL);
63
- font-size: var(--fontSizeBase400);
64
- line-height: var(--lineHeightBase400);
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
- .secondaryContent {
67
- font-size: var(--fontSizeBase300);
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
- .disabled .secondaryContent,
72
- .disabled:hover .secondaryContent,
73
- .disabled:hover:active .secondaryContent,
74
- .disabled:active:focus-visible .secondaryContent {
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
- .iconOnly {
79
- padding: var(--spacingVerticalSNudge);
80
- max-width: calc(var(--spacingHorizontalXXL) * 2 + var(--spacingHorizontalXS));
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
- .before {
97
- margin-inline-end: var(--spacingHorizontalM);
98
- }
87
+ .after {
88
+ margin-inline-start: var(--spacingHorizontalM);
89
+ }
99
90
 
100
- .after {
101
- margin-inline-start: var(--spacingHorizontalM);
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
- .contentContainer {
105
- display: flex;
106
- flex-direction: column;
107
- text-align: left;
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
- &:where(:dir(rtl)) {
110
- text-align: right;
111
- }
121
+ .primary :global(.fui-CompoundButton__secondaryContent) {
122
+ color: HighlightText;
112
123
  }
113
124
 
114
- .secondaryContent {
115
- line-height: 100%;
116
- font-weight: var(--fontWeightRegular);
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
- @media (forced-colors: active) {
120
- .root:hover .secondaryContent,
121
- .root:hover:active .secondaryContent,
122
- .root:active:focus-visible .secondaryContent {
123
- color: Highlight;
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
- @layer fluent {
2
- .expanded {
3
- :global(.fui-Icon-filled) {
4
- display: inline;
5
- }
1
+ .expanded {
2
+ :global(.fui-Icon-filled) {
3
+ display: inline;
4
+ }
6
5
 
7
- :global(.fui-Icon-regular) {
8
- display: none;
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-width: var(--strokeWidthThicker);
20
+ border-color: var(--colorNeutralStroke1Selected);
21
+ color: var(--colorNeutralForeground1Selected);
13
22
  }
14
23
 
15
- &:where(.subtle) {
16
- background-color: var(--colorSubtleBackgroundSelected);
24
+ &:where(.primary) {
25
+ background-color: var(--colorBrandBackgroundSelected);
17
26
  }
18
27
 
19
- @media (forced-colors: none) {
20
- &:where(.outline) {
21
- border-color: var(--colorNeutralStroke1Selected);
22
- color: var(--colorNeutralForeground1Selected);
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
- &:where(.subtle) {
36
- color: var(--colorNeutralForeground2Selected);
37
- }
34
+ &:where(.subtle) {
35
+ color: var(--colorNeutralForeground2Selected);
36
+ }
38
37
 
39
- &:where(.transparent) {
40
- background-color: var(--colorTransparentBackgroundSelected);
41
- color: var(--colorNeutralForeground2BrandSelected);
42
- }
38
+ &:where(.transparent) {
39
+ background-color: var(--colorTransparentBackgroundSelected);
40
+ color: var(--colorNeutralForeground2BrandSelected);
43
41
  }
44
42
  }
43
+ }
45
44
 
46
- .root .menuIcon {
47
- line-height: 0;
48
- margin-inline-start: var(--spacingHorizontalXS);
49
- }
45
+ .menuIcon {
46
+ line-height: 0;
47
+ margin-inline-start: var(--spacingHorizontalXS);
48
+ }
50
49
 
51
- .iconOnly .menuIcon {
52
- margin-inline-start: 0;
53
- }
50
+ :where(.iconOnly) .menuIcon {
51
+ margin-inline-start: 0;
52
+ }
54
53
 
55
- .small .menuIcon,
56
- .medium .menuIcon {
57
- font-size: var(--fontSizeBase200);
58
- height: var(--fontSizeBase200);
59
- line-height: var(--lineHeightBase200);
60
- width: var(--fontSizeBase200);
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
- .large .menuIcon {
64
- font-size: var(--fontSizeBase400);
65
- height: var(--fontSizeBase400);
66
- line-height: var(--lineHeightBase400);
67
- width: var(--fontSizeBase400);
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
- @media (forced-colors: active) {
71
- :where(.expanded):where(.outline, .secondary, .subtle, .transparent) .icon:hover {
72
- color: Highlight;
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
- @layer fluent {
2
- .root:where(.outline, .primary, .secondary, .subtle, .transparent) {
3
- display: inline-flex;
4
- justify-content: stretch;
5
- position: relative;
6
- vertical-align: middle;
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
- .root .primaryActionButton,
10
- .primaryActionButton[data-fui-focus-visible] {
11
- border-start-end-radius: 0;
12
- border-end-end-radius: 0;
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
- .root .menuButton,
16
- .menuButton[data-fui-focus-visible] {
17
- /* Keep the shared edge borderless even when an unlayered custom style hook sets all border widths. */
18
- border-inline-start-width: 0 !important;
19
- border-start-start-radius: 0;
20
- border-end-start-radius: 0;
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
- .root .menuButton {
24
- /* WCAG's minimum adjacent pointer target is 24 CSS pixels, independent of theme spacing. */
25
- min-width: 24px;
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
- .primary .primaryActionButton,
29
- .primary:hover .primaryActionButton,
30
- .primary:hover:active .primaryActionButton,
31
- .primary:active:focus-visible .primaryActionButton {
32
- border-inline-end-color: var(--colorNeutralStrokeOnBrand);
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
- .root:where(.subtle, .transparent) .primaryActionButton {
36
- border-inline-end-color: var(--colorTransparentBackground);
37
- }
33
+ .root:where(.subtle, .transparent) :global(.fui-SplitButton__primaryActionButton) {
34
+ border-inline-end-color: var(--colorTransparentBackground);
35
+ }
38
36
 
39
- .root:where(.subtle, .transparent):hover .primaryActionButton {
40
- border-inline-end-color: var(--colorTransparentBackgroundHover);
41
- }
37
+ .root:where(.subtle, .transparent):hover :global(.fui-SplitButton__primaryActionButton) {
38
+ border-inline-end-color: var(--colorTransparentBackgroundHover);
39
+ }
42
40
 
43
- .root:where(.subtle, .transparent):hover:active .primaryActionButton,
44
- .root:where(.subtle, .transparent):active:focus-visible .primaryActionButton {
45
- border-inline-end-color: var(--colorTransparentBackgroundPressed);
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
- .disabled .primaryActionButton,
49
- .disabled:hover .primaryActionButton,
50
- .disabled:hover:active .primaryActionButton,
51
- .disabled:active:focus-visible .primaryActionButton {
52
- border-inline-end-color: var(--colorNeutralStrokeDisabled);
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
- @media (forced-colors: active) {
56
- .primary .primaryActionButton {
57
- border-inline-end-color: HighlightText;
58
- }
53
+ @media (forced-colors: active) {
54
+ .primary :global(.fui-SplitButton__primaryActionButton) {
55
+ border-inline-end-color: HighlightText;
56
+ }
59
57
 
60
- .primary:hover .primaryActionButton,
61
- .primary:hover:active .primaryActionButton,
62
- .primary:active:focus-visible .primaryActionButton {
63
- border-inline-end-color: Highlight;
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
- .disabled .primaryActionButton,
67
- .disabled:hover .primaryActionButton,
68
- .disabled:hover:active .primaryActionButton,
69
- .disabled:active:focus-visible .primaryActionButton {
70
- border-inline-end-color: GrayText;
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
  }