@fluentui/web-components 3.0.2 → 3.1.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/custom-elements.json +14 -202
  3. package/dist/esm/accordion-item/accordion-item.styles.css +3 -1
  4. package/dist/esm/button/button.styles.css +48 -12
  5. package/dist/esm/button/button.styles.js +21 -12
  6. package/dist/esm/button/button.styles.js.map +1 -1
  7. package/dist/esm/checkbox/checkbox.styles.css +13 -13
  8. package/dist/esm/checkbox/checkbox.styles.js +14 -14
  9. package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
  10. package/dist/esm/compound-button/compound-button.styles.css +59 -14
  11. package/dist/esm/compound-button/compound-button.styles.js +11 -2
  12. package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
  13. package/dist/esm/dropdown/dropdown.styles.css +8 -8
  14. package/dist/esm/dropdown/dropdown.styles.js +9 -9
  15. package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
  16. package/dist/esm/link/link.styles.css +10 -1
  17. package/dist/esm/menu-button/menu-button.styles.css +48 -12
  18. package/dist/esm/menu-item/menu-item.styles.css +23 -39
  19. package/dist/esm/menu-item/menu-item.styles.js +25 -41
  20. package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
  21. package/dist/esm/menu-list/menu-list.base.d.ts +0 -1
  22. package/dist/esm/menu-list/menu-list.base.js +0 -20
  23. package/dist/esm/menu-list/menu-list.base.js.map +1 -1
  24. package/dist/esm/menu-list/menu-list.styles.css +59 -7
  25. package/dist/esm/menu-list/menu-list.styles.js +60 -8
  26. package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
  27. package/dist/esm/message-bar/message-bar.styles.css +1 -1
  28. package/dist/esm/message-bar/message-bar.styles.js +0 -1
  29. package/dist/esm/message-bar/message-bar.styles.js.map +1 -1
  30. package/dist/esm/option/option.styles.css +4 -4
  31. package/dist/esm/option/option.styles.js +5 -5
  32. package/dist/esm/option/option.styles.js.map +1 -1
  33. package/dist/esm/slider/slider.styles.css +2 -2
  34. package/dist/esm/slider/slider.styles.js +3 -2
  35. package/dist/esm/slider/slider.styles.js.map +1 -1
  36. package/dist/esm/styles/states/index.d.ts +9 -0
  37. package/dist/esm/styles/states/index.js +9 -0
  38. package/dist/esm/styles/states/index.js.map +1 -1
  39. package/dist/esm/switch/switch.styles.css +6 -6
  40. package/dist/esm/switch/switch.styles.js +7 -7
  41. package/dist/esm/switch/switch.styles.js.map +1 -1
  42. package/dist/esm/tab/tab.styles.css +10 -9
  43. package/dist/esm/tab/tab.styles.js +10 -9
  44. package/dist/esm/tab/tab.styles.js.map +1 -1
  45. package/dist/esm/tablist/tablist.base.d.ts +2 -0
  46. package/dist/esm/tablist/tablist.base.js +11 -7
  47. package/dist/esm/tablist/tablist.base.js.map +1 -1
  48. package/dist/esm/tablist/tablist.styles.css +28 -8
  49. package/dist/esm/tablist/tablist.styles.js +19 -1
  50. package/dist/esm/tablist/tablist.styles.js.map +1 -1
  51. package/dist/esm/tablist/tablist.template.html +1 -1
  52. package/dist/esm/tablist/tablist.template.js +1 -0
  53. package/dist/esm/tablist/tablist.template.js.map +1 -1
  54. package/dist/esm/text-input/text-input.styles.css +5 -5
  55. package/dist/esm/text-input/text-input.styles.js +6 -5
  56. package/dist/esm/text-input/text-input.styles.js.map +1 -1
  57. package/dist/esm/textarea/textarea.styles.css +6 -6
  58. package/dist/esm/textarea/textarea.styles.js +7 -7
  59. package/dist/esm/textarea/textarea.styles.js.map +1 -1
  60. package/dist/esm/toggle-button/toggle-button.styles.css +48 -12
  61. package/dist/esm/tree-item/tree-item.base.d.ts +1 -13
  62. package/dist/esm/tree-item/tree-item.base.js +2 -26
  63. package/dist/esm/tree-item/tree-item.base.js.map +1 -1
  64. package/dist/esm/tree-item/tree-item.styles.css +8 -2
  65. package/dist/esm/tree-item/tree-item.styles.js +8 -2
  66. package/dist/esm/tree-item/tree-item.styles.js.map +1 -1
  67. package/dist/web-components-all.js +25 -58
  68. package/dist/web-components-all.min.js +8 -8
  69. package/dist/web-components.d.ts +3 -14
  70. package/dist/web-components.js +25 -58
  71. package/dist/web-components.min.js +13 -13
  72. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -1,9 +1,29 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Mon, 13 Jul 2026 04:09:41 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Thu, 13 Aug 2026 04:10:11 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.1.0)
8
+
9
+ Thu, 13 Aug 2026 04:10:11 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.3..@fluentui/web-components_v3.1.0)
11
+
12
+ ### Minor changes
13
+
14
+ - Remove max-width from MessageBar component ([PR #36521](https://github.com/microsoft/fluentui/pull/36521) by jolud@microsoft.com)
15
+
16
+ ## [3.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.3)
17
+
18
+ Mon, 10 Aug 2026 17:06:42 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.2..@fluentui/web-components_v3.0.3)
20
+
21
+ ### Patches
22
+
23
+ - remove using data-indent for styling ([PR #36457](https://github.com/microsoft/fluentui/pull/36457) by machi@microsoft.com)
24
+ - make native disabled state support SSR better ([PR #36441](https://github.com/microsoft/fluentui/pull/36441) by machi@microsoft.com)
25
+ - fix: select a tab when click() is called on it ([PR #36395](https://github.com/microsoft/fluentui/pull/36395) by machi@microsoft.com)
26
+
7
27
  ## [3.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.2)
8
28
 
9
29
  Mon, 13 Jul 2026 04:09:41 GMT
@@ -18575,25 +18575,6 @@
18575
18575
  },
18576
18576
  "description": "Focuses the first item in the menu."
18577
18577
  },
18578
- {
18579
- "kind": "method",
18580
- "name": "elementIndent",
18581
- "privacy": "private",
18582
- "static": true,
18583
- "return": {
18584
- "type": {
18585
- "text": "MenuItemColumnCount"
18586
- }
18587
- },
18588
- "parameters": [
18589
- {
18590
- "name": "el",
18591
- "type": {
18592
- "text": "HTMLElement"
18593
- }
18594
- }
18595
- ]
18596
- },
18597
18578
  {
18598
18579
  "kind": "method",
18599
18580
  "name": "setItems",
@@ -18801,29 +18782,6 @@
18801
18782
  "module": "src/menu-list/menu-list.base.ts"
18802
18783
  }
18803
18784
  },
18804
- {
18805
- "kind": "method",
18806
- "name": "elementIndent",
18807
- "privacy": "private",
18808
- "static": true,
18809
- "return": {
18810
- "type": {
18811
- "text": "MenuItemColumnCount"
18812
- }
18813
- },
18814
- "parameters": [
18815
- {
18816
- "name": "el",
18817
- "type": {
18818
- "text": "HTMLElement"
18819
- }
18820
- }
18821
- ],
18822
- "inheritedFrom": {
18823
- "name": "BaseMenuList",
18824
- "module": "src/menu-list/menu-list.base.ts"
18825
- }
18826
- },
18827
18785
  {
18828
18786
  "kind": "method",
18829
18787
  "name": "handleChange",
@@ -27627,42 +27585,6 @@
27627
27585
  "default": "false",
27628
27586
  "description": "When true, the control has no child tree items\nWhen true, the control has no child tree items\n\nHTML Attribute: empty"
27629
27587
  },
27630
- {
27631
- "kind": "field",
27632
- "name": "styles",
27633
- "type": {
27634
- "text": "ElementStyles | undefined"
27635
- },
27636
- "privacy": "private"
27637
- },
27638
- {
27639
- "kind": "field",
27640
- "name": "dataIndent",
27641
- "type": {
27642
- "text": "number | undefined"
27643
- },
27644
- "privacy": "public",
27645
- "description": "The indent of the tree item element.\nThis is not needed once css attr() is supported (--indent: attr(data-indent type(<number>)));"
27646
- },
27647
- {
27648
- "kind": "method",
27649
- "name": "dataIndentChanged",
27650
- "privacy": "protected",
27651
- "parameters": [
27652
- {
27653
- "name": "prev",
27654
- "type": {
27655
- "text": "number"
27656
- }
27657
- },
27658
- {
27659
- "name": "next",
27660
- "type": {
27661
- "text": "number"
27662
- }
27663
- }
27664
- ]
27665
- },
27666
27588
  {
27667
27589
  "kind": "method",
27668
27590
  "name": "childTreeItemsChanged",
@@ -27673,26 +27595,7 @@
27673
27595
  "kind": "method",
27674
27596
  "name": "updateChildTreeItems",
27675
27597
  "privacy": "public",
27676
- "description": "Updates the childrens indent"
27677
- },
27678
- {
27679
- "kind": "method",
27680
- "name": "setIndent",
27681
- "privacy": "private",
27682
- "return": {
27683
- "type": {
27684
- "text": "void"
27685
- }
27686
- },
27687
- "parameters": [
27688
- {
27689
- "name": "item",
27690
- "type": {
27691
- "text": "BaseTreeItem"
27692
- }
27693
- }
27694
- ],
27695
- "description": "Sets the indent for each item"
27598
+ "description": "Updates the children’s selected states."
27696
27599
  },
27697
27600
  {
27698
27601
  "kind": "method",
@@ -27751,14 +27654,6 @@
27751
27654
  "default": "false",
27752
27655
  "description": "When true, the control has no child tree items\nWhen true, the control has no child tree items\n\nHTML Attribute: empty",
27753
27656
  "fieldName": "empty"
27754
- },
27755
- {
27756
- "name": "data-indent",
27757
- "type": {
27758
- "text": "number | undefined"
27759
- },
27760
- "description": "The indent of the tree item element.\nThis is not needed once css attr() is supported (--indent: attr(data-indent type(<number>)));",
27761
- "fieldName": "dataIndent"
27762
27657
  }
27763
27658
  ],
27764
27659
  "superclass": {
@@ -27936,54 +27831,6 @@
27936
27831
  "module": "src/tree-item/tree-item.base.ts"
27937
27832
  }
27938
27833
  },
27939
- {
27940
- "kind": "field",
27941
- "name": "styles",
27942
- "type": {
27943
- "text": "ElementStyles | undefined"
27944
- },
27945
- "privacy": "private",
27946
- "inheritedFrom": {
27947
- "name": "BaseTreeItem",
27948
- "module": "src/tree-item/tree-item.base.ts"
27949
- }
27950
- },
27951
- {
27952
- "kind": "field",
27953
- "name": "dataIndent",
27954
- "type": {
27955
- "text": "number | undefined"
27956
- },
27957
- "privacy": "public",
27958
- "description": "The indent of the tree item element.\nThis is not needed once css attr() is supported (--indent: attr(data-indent type(<number>)));",
27959
- "inheritedFrom": {
27960
- "name": "BaseTreeItem",
27961
- "module": "src/tree-item/tree-item.base.ts"
27962
- }
27963
- },
27964
- {
27965
- "kind": "method",
27966
- "name": "dataIndentChanged",
27967
- "privacy": "protected",
27968
- "parameters": [
27969
- {
27970
- "name": "prev",
27971
- "type": {
27972
- "text": "number"
27973
- }
27974
- },
27975
- {
27976
- "name": "next",
27977
- "type": {
27978
- "text": "number"
27979
- }
27980
- }
27981
- ],
27982
- "inheritedFrom": {
27983
- "name": "BaseTreeItem",
27984
- "module": "src/tree-item/tree-item.base.ts"
27985
- }
27986
- },
27987
27834
  {
27988
27835
  "kind": "method",
27989
27836
  "name": "childTreeItemsChanged",
@@ -27998,30 +27845,7 @@
27998
27845
  "kind": "method",
27999
27846
  "name": "updateChildTreeItems",
28000
27847
  "privacy": "public",
28001
- "description": "Updates the childrens indent",
28002
- "inheritedFrom": {
28003
- "name": "BaseTreeItem",
28004
- "module": "src/tree-item/tree-item.base.ts"
28005
- }
28006
- },
28007
- {
28008
- "kind": "method",
28009
- "name": "setIndent",
28010
- "privacy": "private",
28011
- "return": {
28012
- "type": {
28013
- "text": "void"
28014
- }
28015
- },
28016
- "parameters": [
28017
- {
28018
- "name": "item",
28019
- "type": {
28020
- "text": "BaseTreeItem"
28021
- }
28022
- }
28023
- ],
28024
- "description": "Sets the indent for each item",
27848
+ "description": "Updates the children’s selected states.",
28025
27849
  "inheritedFrom": {
28026
27850
  "name": "BaseTreeItem",
28027
27851
  "module": "src/tree-item/tree-item.base.ts"
@@ -28134,18 +27958,6 @@
28134
27958
  "name": "BaseTreeItem",
28135
27959
  "module": "src/tree-item/tree-item.base.ts"
28136
27960
  }
28137
- },
28138
- {
28139
- "name": "data-indent",
28140
- "type": {
28141
- "text": "number | undefined"
28142
- },
28143
- "description": "The indent of the tree item element.\nThis is not needed once css attr() is supported (--indent: attr(data-indent type(<number>)));",
28144
- "fieldName": "dataIndent",
28145
- "inheritedFrom": {
28146
- "name": "BaseTreeItem",
28147
- "module": "src/tree-item/tree-item.base.ts"
28148
- }
28149
27961
  }
28150
27962
  ],
28151
27963
  "superclass": {
@@ -28533,7 +28345,7 @@
28533
28345
  },
28534
28346
  {
28535
28347
  "kind": "javascript-module",
28536
- "path": "src/accordion-item/accordion-item.definition-async.ts",
28348
+ "path": "src/avatar/avatar.definition-async.ts",
28537
28349
  "declarations": [
28538
28350
  {
28539
28351
  "kind": "variable",
@@ -28542,7 +28354,7 @@
28542
28354
  "text": "PartialFASTElementDefinition"
28543
28355
  },
28544
28356
  "default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
28545
- "description": "The async definition configuration for the `<fluent-accordion-item>` element.",
28357
+ "description": "The async definition configuration for the `<fluent-avatar>` element.",
28546
28358
  "privacy": "public"
28547
28359
  }
28548
28360
  ],
@@ -28552,20 +28364,20 @@
28552
28364
  "name": "declarativeDefinition",
28553
28365
  "declaration": {
28554
28366
  "name": "declarativeDefinition",
28555
- "module": "src/accordion-item/accordion-item.definition-async.ts"
28367
+ "module": "src/avatar/avatar.definition-async.ts"
28556
28368
  }
28557
28369
  }
28558
28370
  ]
28559
28371
  },
28560
28372
  {
28561
28373
  "kind": "javascript-module",
28562
- "path": "src/accordion-item/define-async.ts",
28374
+ "path": "src/avatar/define-async.ts",
28563
28375
  "declarations": [],
28564
28376
  "exports": []
28565
28377
  },
28566
28378
  {
28567
28379
  "kind": "javascript-module",
28568
- "path": "src/badge/badge.definition-async.ts",
28380
+ "path": "src/accordion-item/accordion-item.definition-async.ts",
28569
28381
  "declarations": [
28570
28382
  {
28571
28383
  "kind": "variable",
@@ -28574,7 +28386,7 @@
28574
28386
  "text": "PartialFASTElementDefinition"
28575
28387
  },
28576
28388
  "default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
28577
- "description": "The async definition configuration for the `<fluent-badge>` element.",
28389
+ "description": "The async definition configuration for the `<fluent-accordion-item>` element.",
28578
28390
  "privacy": "public"
28579
28391
  }
28580
28392
  ],
@@ -28584,20 +28396,20 @@
28584
28396
  "name": "declarativeDefinition",
28585
28397
  "declaration": {
28586
28398
  "name": "declarativeDefinition",
28587
- "module": "src/badge/badge.definition-async.ts"
28399
+ "module": "src/accordion-item/accordion-item.definition-async.ts"
28588
28400
  }
28589
28401
  }
28590
28402
  ]
28591
28403
  },
28592
28404
  {
28593
28405
  "kind": "javascript-module",
28594
- "path": "src/badge/define-async.ts",
28406
+ "path": "src/accordion-item/define-async.ts",
28595
28407
  "declarations": [],
28596
28408
  "exports": []
28597
28409
  },
28598
28410
  {
28599
28411
  "kind": "javascript-module",
28600
- "path": "src/avatar/avatar.definition-async.ts",
28412
+ "path": "src/badge/badge.definition-async.ts",
28601
28413
  "declarations": [
28602
28414
  {
28603
28415
  "kind": "variable",
@@ -28606,7 +28418,7 @@
28606
28418
  "text": "PartialFASTElementDefinition"
28607
28419
  },
28608
28420
  "default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
28609
- "description": "The async definition configuration for the `<fluent-avatar>` element.",
28421
+ "description": "The async definition configuration for the `<fluent-badge>` element.",
28610
28422
  "privacy": "public"
28611
28423
  }
28612
28424
  ],
@@ -28616,14 +28428,14 @@
28616
28428
  "name": "declarativeDefinition",
28617
28429
  "declaration": {
28618
28430
  "name": "declarativeDefinition",
28619
- "module": "src/avatar/avatar.definition-async.ts"
28431
+ "module": "src/badge/badge.definition-async.ts"
28620
28432
  }
28621
28433
  }
28622
28434
  ]
28623
28435
  },
28624
28436
  {
28625
28437
  "kind": "javascript-module",
28626
- "path": "src/avatar/define-async.ts",
28438
+ "path": "src/badge/define-async.ts",
28627
28439
  "declarations": [],
28628
28440
  "exports": []
28629
28441
  },
@@ -8,6 +8,7 @@
8
8
  :host {
9
9
  max-width: fit-content;
10
10
  contain: content;
11
+ color: var(--colorNeutralForeground1);
11
12
  }
12
13
 
13
14
  .heading {
@@ -28,7 +29,7 @@
28
29
  background: var(--colorTransparentBackground);
29
30
  border: none;
30
31
  box-sizing: border-box;
31
- color: var(--colorNeutralForeground1);
32
+ color: inherit;
32
33
  cursor: pointer;
33
34
  font: inherit;
34
35
  grid-column: auto / span 2;
@@ -138,6 +139,7 @@ button:focus-visible::after {
138
139
 
139
140
  :host([marker-position='end']) ::slotted([slot='start']) {
140
141
  grid-column: 1 / span 1;
142
+ color: currentColor;
141
143
  }
142
144
 
143
145
  :host([marker-position='end']) :is(.default-marker-collapsed, .default-marker-expanded) {
@@ -213,33 +213,60 @@
213
213
  border-color: transparent;
214
214
  }
215
215
 
216
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable])),
217
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable]):hover),
218
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable]):hover:active) {
216
+ :host(
217
+ :is(
218
+ :disabled,
219
+ [disabled],
220
+ [disabled-focusable],
221
+ [appearance]:disabled,
222
+ [appearance][disabled],
223
+ [appearance][disabled-focusable]
224
+ )
225
+ ),
226
+ :host(
227
+ :is(
228
+ :disabled,
229
+ [disabled],
230
+ [disabled-focusable],
231
+ [appearance]:disabled,
232
+ [appearance][disabled],
233
+ [appearance][disabled-focusable]
234
+ ):hover
235
+ ),
236
+ :host(
237
+ :is(
238
+ :disabled,
239
+ [disabled],
240
+ [disabled-focusable],
241
+ [appearance]:disabled,
242
+ [appearance][disabled],
243
+ [appearance][disabled-focusable]
244
+ ):hover:active
245
+ ) {
219
246
  background-color: var(--colorNeutralBackgroundDisabled);
220
247
  border-color: var(--colorNeutralStrokeDisabled);
221
248
  color: var(--colorNeutralForegroundDisabled);
222
249
  cursor: not-allowed;
223
250
  }
224
251
 
225
- :host([appearance='primary']:is(:disabled, [disabled-focusable])),
226
- :host([appearance='primary']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
252
+ :host([appearance='primary']:is(:disabled, [disabled], [disabled-focusable])),
253
+ :host([appearance='primary']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
227
254
  border-color: transparent;
228
255
  }
229
256
 
230
- :host([appearance='outline']:is(:disabled, [disabled-focusable])),
231
- :host([appearance='outline']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
257
+ :host([appearance='outline']:is(:disabled, [disabled], [disabled-focusable])),
258
+ :host([appearance='outline']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
232
259
  background-color: var(--colorTransparentBackground);
233
260
  }
234
261
 
235
- :host([appearance='subtle']:is(:disabled, [disabled-focusable])),
236
- :host([appearance='subtle']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
262
+ :host([appearance='subtle']:is(:disabled, [disabled], [disabled-focusable])),
263
+ :host([appearance='subtle']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
237
264
  background-color: var(--colorTransparentBackground);
238
265
  border-color: transparent;
239
266
  }
240
267
 
241
- :host([appearance='transparent']:is(:disabled, [disabled-focusable])),
242
- :host([appearance='transparent']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
268
+ :host([appearance='transparent']:is(:disabled, [disabled], [disabled-focusable])),
269
+ :host([appearance='transparent']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
243
270
  border-color: transparent;
244
271
  background-color: var(--colorTransparentBackground);
245
272
  }
@@ -260,7 +287,16 @@
260
287
  forced-color-adjust: none;
261
288
  }
262
289
 
263
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable])) {
290
+ :host(
291
+ :is(
292
+ :disabled,
293
+ [disabled],
294
+ [disabled-focusable],
295
+ [appearance]:disabled,
296
+ [appearance][disabled],
297
+ [appearance][disabled-focusable]
298
+ )
299
+ ) {
264
300
  background-color: ButtonFace;
265
301
  color: GrayText;
266
302
  border-color: ButtonText;
@@ -223,33 +223,33 @@ export const baseButtonStyles = css `
223
223
  export const styles = css `
224
224
  ${baseButtonStyles}
225
225
 
226
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable])),
227
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable]):hover),
228
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable]):hover:active) {
226
+ :host(:is(:disabled, [disabled], [disabled-focusable], [appearance]:disabled, [appearance][disabled], [appearance][disabled-focusable])),
227
+ :host(:is(:disabled, [disabled], [disabled-focusable], [appearance]:disabled, [appearance][disabled], [appearance][disabled-focusable]):hover),
228
+ :host(:is(:disabled, [disabled], [disabled-focusable], [appearance]:disabled, [appearance][disabled], [appearance][disabled-focusable]):hover:active) {
229
229
  background-color: ${colorNeutralBackgroundDisabled};
230
230
  border-color: ${colorNeutralStrokeDisabled};
231
231
  color: ${colorNeutralForegroundDisabled};
232
232
  cursor: not-allowed;
233
233
  }
234
234
 
235
- :host([appearance='primary']:is(:disabled, [disabled-focusable])),
236
- :host([appearance='primary']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
235
+ :host([appearance='primary']:is(:disabled, [disabled], [disabled-focusable])),
236
+ :host([appearance='primary']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
237
237
  border-color: transparent;
238
238
  }
239
239
 
240
- :host([appearance='outline']:is(:disabled, [disabled-focusable])),
241
- :host([appearance='outline']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
240
+ :host([appearance='outline']:is(:disabled, [disabled], [disabled-focusable])),
241
+ :host([appearance='outline']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
242
242
  background-color: ${colorTransparentBackground};
243
243
  }
244
244
 
245
- :host([appearance='subtle']:is(:disabled, [disabled-focusable])),
246
- :host([appearance='subtle']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
245
+ :host([appearance='subtle']:is(:disabled, [disabled], [disabled-focusable])),
246
+ :host([appearance='subtle']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
247
247
  background-color: ${colorTransparentBackground};
248
248
  border-color: transparent;
249
249
  }
250
250
 
251
- :host([appearance='transparent']:is(:disabled, [disabled-focusable])),
252
- :host([appearance='transparent']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
251
+ :host([appearance='transparent']:is(:disabled, [disabled], [disabled-focusable])),
252
+ :host([appearance='transparent']:is(:disabled, [disabled], [disabled-focusable]):is(:hover, :hover:active)) {
253
253
  border-color: transparent;
254
254
  background-color: ${colorTransparentBackground};
255
255
  }
@@ -270,7 +270,16 @@ export const styles = css `
270
270
  forced-color-adjust: none;
271
271
  }
272
272
 
273
- :host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable])) {
273
+ :host(
274
+ :is(
275
+ :disabled,
276
+ [disabled],
277
+ [disabled-focusable],
278
+ [appearance]:disabled,
279
+ [appearance][disabled],
280
+ [appearance][disabled-focusable]
281
+ )
282
+ ) {
274
283
  background-color: ButtonFace;
275
284
  color: GrayText;
276
285
  border-color: ButtonText;
@@ -1 +1 @@
1
- {"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../../src/button/button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,EACvB,iCAAiC,EACjC,mCAAmC,EACnC,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,mBAAmB,EACnB,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB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AI/B,6BAA6B;kBAC/B,OAAO,eAAe,iBAAiB;;;;wBAIjC,0BAA0B;;;;wBAI1B,+BAA+B;;;;wBAI/B,iCAAiC;;;;wBAIjC,qBAAqB;aAChC,uBAAuB;;;;;wBAKZ,0BAA0B;aACrC,4BAA4B;;;;;wBAKjB,4BAA4B;aACvC,8BAA8B;;;;;YAK/B,iCAAiC;;;;YAIjC,mCAAmC;;;;wBAIvB,0BAA0B;aACrC,uBAAuB;;;;wBAIZ,+BAA+B;aAC1C,iCAAiC;;;;wBAItB,iCAAiC;aAC5C,mCAAmC;;;;;;CAM/C,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,gBAAgB;;;;;wBAKI,8BAA8B;oBAClC,0BAA0B;aACjC,8BAA8B;;;;;;;;;;;wBAWnB,0BAA0B;;;;;wBAK1B,0BAA0B;;;;;;;wBAO1B,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCjD,CAAC"}
@@ -109,21 +109,21 @@
109
109
  border-radius: var(--borderRadiusCircular);
110
110
  }
111
111
 
112
- :host([disabled]),
113
- :host([disabled]:state(checked)) {
112
+ :host(:is([disabled], :disabled)),
113
+ :host(:is([disabled], :disabled):state(checked)) {
114
114
  background-color: var(--colorNeutralBackgroundDisabled);
115
115
  border-color: var(--colorNeutralStrokeDisabled);
116
116
  }
117
117
 
118
- :host([disabled]) {
118
+ :host(:is([disabled], :disabled)) {
119
119
  cursor: unset;
120
120
  }
121
121
 
122
- :host([disabled]:state(indeterminate)) .indeterminate-indicator {
122
+ :host(:is([disabled], :disabled):state(indeterminate)) .indeterminate-indicator {
123
123
  background-color: var(--colorNeutralStrokeDisabled);
124
124
  }
125
125
 
126
- :host([disabled]:state(checked)) .checked-indicator {
126
+ :host(:is([disabled], :disabled):state(checked)) .checked-indicator {
127
127
  color: var(--colorNeutralStrokeDisabled);
128
128
  }
129
129
 
@@ -136,8 +136,8 @@
136
136
  border-color: Canvas;
137
137
  }
138
138
 
139
- :host(:not([disabled]):hover),
140
- :host(:state(checked):not([disabled]):hover),
139
+ :host(:not(:is([disabled], :disabled)):hover),
140
+ :host(:state(checked):not(:is([disabled], :disabled)):hover),
141
141
  :host(:not([slot='input']):focus-visible)::after {
142
142
  border-color: Highlight;
143
143
  }
@@ -152,21 +152,21 @@
152
152
  background-color: FieldText;
153
153
  }
154
154
 
155
- :host(:state(checked):not([disabled]):hover),
156
- :host(:state(indeterminate):not([disabled]):hover) .indeterminate-indicator {
155
+ :host(:state(checked):not(:is([disabled], :disabled)):hover),
156
+ :host(:state(indeterminate):not(:is([disabled], :disabled)):hover) .indeterminate-indicator {
157
157
  background-color: Highlight;
158
158
  }
159
159
 
160
- :host([disabled]) {
160
+ :host(:is([disabled], :disabled)) {
161
161
  border-color: GrayText;
162
162
  }
163
163
 
164
- :host([disabled]:state(indeterminate)) .indeterminate-indicator {
164
+ :host(:is([disabled], :disabled):state(indeterminate)) .indeterminate-indicator {
165
165
  background-color: GrayText;
166
166
  }
167
167
 
168
- :host([disabled]),
169
- :host([disabled]:state(checked)) .checked-indicator {
168
+ :host(:is([disabled], :disabled)),
169
+ :host(:is([disabled], :disabled):state(checked)) .checked-indicator {
170
170
  color: GrayText;
171
171
  }
172
172
  }