lightning-base-components 1.21.2-alpha → 1.21.3-alpha

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 (222) hide show
  1. package/metadata/raptor.json +28 -1
  2. package/package.json +28 -2
  3. package/scopedImports/@salesforce-label-LightningRichTextEditor.colorPicker.js +1 -0
  4. package/src/lightning/accordion/accordion-section.slds.css +3 -3
  5. package/src/lightning/accordion/accordion.slds.css +1 -2
  6. package/src/lightning/accordionSection/accordion-section.slds.css +3 -3
  7. package/src/lightning/accordionSection/accordionSection.js +3 -1
  8. package/src/lightning/accordionSection/button.slds.css +1 -1
  9. package/src/lightning/badge/badge.js +1 -0
  10. package/src/lightning/badge/badge.js-meta.xml +3 -0
  11. package/src/lightning/baseCombobox/base-combobox.slds.css +11 -6
  12. package/src/lightning/baseCombobox/baseCombobox.html +1 -1
  13. package/src/lightning/baseCombobox/baseCombobox.js +2 -2
  14. package/src/lightning/baseCombobox/baseCombobox.js-meta.xml +6 -0
  15. package/src/lightning/baseCombobox/input-text.slds.css +41 -68
  16. package/src/lightning/baseCombobox/keyboard.js +12 -4
  17. package/src/lightning/baseCombobox/listbox.slds.css +51 -99
  18. package/src/lightning/baseCombobox/spinner.slds.css +62 -62
  19. package/src/lightning/baseComboboxFormattedText/baseComboboxFormattedText.js-meta.xml +6 -0
  20. package/src/lightning/baseComboboxItem/baseComboboxItem.js +10 -6
  21. package/src/lightning/baseComboboxItem/baseComboboxItem.js-meta.xml +6 -0
  22. package/src/lightning/baseComboboxItem/listbox.slds.css +51 -99
  23. package/src/lightning/baseFormattedText/baseFormattedText.js +2 -2
  24. package/src/lightning/button/button.js +2 -1
  25. package/src/lightning/button/button.slds.css +1 -1
  26. package/src/lightning/buttonIcon/button-icon.slds.css +1 -1
  27. package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +4 -2
  28. package/src/lightning/buttonIconStateful/button-icon.slds.css +1 -1
  29. package/src/lightning/buttonIconStateful/button.slds.css +1 -1
  30. package/src/lightning/buttonMenu/button-icon.slds.css +1 -1
  31. package/src/lightning/buttonMenu/button-menu.slds.css +8 -2
  32. package/src/lightning/buttonMenu/button.slds.css +1 -1
  33. package/src/lightning/buttonStateful/button-stateful.slds.css +6 -2
  34. package/src/lightning/buttonStateful/button.slds.css +1 -1
  35. package/src/lightning/buttonStateful/buttonStateful.js +4 -1
  36. package/src/lightning/calendar/calendar.js-meta.xml +6 -0
  37. package/src/lightning/calendar/calendar.slds.css +9 -2
  38. package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +22 -23
  39. package/src/lightning/colorPickerCustom/input-text.slds.css +41 -68
  40. package/src/lightning/colorPickerPanel/color-picker-panel.slds.css +9 -10
  41. package/src/lightning/colorPickerPanel/popover.slds.css +0 -2
  42. package/src/lightning/combobox/combobox.slds.css +1 -2
  43. package/src/lightning/combobox/form-element.slds.css +54 -54
  44. package/src/lightning/datatable/__examples__/customDatatableWrapper/customDatatableWrapper.js +0 -69
  45. package/src/lightning/datatable/__examples__/customDatatypeDeleteRowBtn/customDatatypeDeleteRowBtn.html +1 -1
  46. package/src/lightning/datatable/__examples__/customDatatypeDeleteRowBtn/customDatatypeDeleteRowBtn.js +1 -16
  47. package/src/lightning/datatable/__examples__/customDatatypeLink/customDatatypeLink.html +3 -3
  48. package/src/lightning/datatable/__examples__/customDatatypeRowOrderingBtn/customDatatypeRowOrderingBtn.html +1 -8
  49. package/src/lightning/datatable/__examples__/customDatatypeRowOrderingBtn/customDatatypeRowOrderingBtn.js +2 -39
  50. package/src/lightning/datatable/__examples__/customDatatypeTable/customNumber.html +1 -1
  51. package/src/lightning/datatable/__examples__/customDatatypeTable/customNumberEdit.html +2 -0
  52. package/src/lightning/datatable/__examples__/customDatatypeTable/deleteRow.html +3 -2
  53. package/src/lightning/datatable/__examples__/customDatatypeTable/iconPill.html +1 -1
  54. package/src/lightning/datatable/__examples__/customNestedComponent/customNestedComponent.html +10 -0
  55. package/src/lightning/datatable/__examples__/customNestedComponent/customNestedComponent.js +12 -0
  56. package/src/lightning/datatable/autoWidthStrategy.js +147 -191
  57. package/src/lightning/datatable/columnResizer.js +35 -35
  58. package/src/lightning/datatable/columnWidthManager.js +118 -177
  59. package/src/lightning/datatable/columns.js +90 -59
  60. package/src/lightning/datatable/datagrid.slds.css +187 -0
  61. package/src/lightning/datatable/datatable.js +248 -229
  62. package/src/lightning/datatable/errors.js +3 -0
  63. package/src/lightning/datatable/fixedWidthStrategy.js +22 -29
  64. package/src/lightning/datatable/headerActions.js +7 -9
  65. package/src/lightning/datatable/infiniteLoading.js +15 -15
  66. package/src/lightning/datatable/inlineEdit.js +255 -235
  67. package/src/lightning/datatable/keyboard.js +318 -282
  68. package/src/lightning/datatable/renderManager.js +10 -7
  69. package/src/lightning/datatable/resizeObserver.js +11 -59
  70. package/src/lightning/datatable/rowLevelActions.js +6 -5
  71. package/src/lightning/datatable/rowNumber.js +23 -23
  72. package/src/lightning/datatable/rowSelection.js +173 -145
  73. package/src/lightning/datatable/rowSelectionShared.js +13 -6
  74. package/src/lightning/datatable/rows.js +231 -196
  75. package/src/lightning/datatable/sort.js +26 -22
  76. package/src/lightning/datatable/templates/div/div.css +2 -57
  77. package/src/lightning/datatable/templates/div/div.html +13 -6
  78. package/src/lightning/datatable/templates/div/div.lbc.native.css +3 -0
  79. package/src/lightning/datatable/templates/div/div.lbc.synthetic.css +86 -0
  80. package/src/lightning/datatable/templates/table/table.html +1 -0
  81. package/src/lightning/datatable/utils.js +5 -5
  82. package/src/lightning/datatable/widthManagerShared.js +24 -21
  83. package/src/lightning/datatable/wrapText.js +25 -26
  84. package/src/lightning/datepicker/datepicker.js +32 -9
  85. package/src/lightning/datepicker/datepicker.js-meta.xml +6 -0
  86. package/src/lightning/datepicker/form-element.slds.css +54 -54
  87. package/src/lightning/datepicker/input-text.slds.css +41 -68
  88. package/src/lightning/datetimepicker/datetimepicker.js-meta.xml +6 -0
  89. package/src/lightning/datetimepicker/form-element.slds.css +54 -54
  90. package/src/lightning/datetimepicker/input-text.slds.css +41 -68
  91. package/src/lightning/dualListbox/dual-listbox.slds.css +7 -2
  92. package/src/lightning/dualListbox/form-element.slds.css +54 -54
  93. package/src/lightning/dualListbox/listbox.slds.css +51 -99
  94. package/src/lightning/dynamicIcon/dynamic-icon-strength.slds.css +1 -2
  95. package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +1 -2
  96. package/src/lightning/formattedDateTime/formattedDateTime.js +7 -62
  97. package/src/lightning/formattedDateTime/formattedDateTime.js-meta.xml +3 -0
  98. package/src/lightning/formattedLocation/formattedLocation.html +1 -3
  99. package/src/lightning/formattedLocation/formattedLocation.js +3 -25
  100. package/src/lightning/formattedLookup/events.js +2 -4
  101. package/src/lightning/formattedNumber/formattedNumber.js +2 -49
  102. package/src/lightning/formattedRichText/formattedRichText.js +5 -5
  103. package/src/lightning/formattedRichText/linkTextNodes.js +58 -0
  104. package/src/lightning/groupedCombobox/form-element.slds.css +54 -54
  105. package/src/lightning/groupedCombobox/grouped-combobox.slds.css +0 -2
  106. package/src/lightning/groupedCombobox/groupedCombobox.js-meta.xml +1 -1
  107. package/src/lightning/groupedCombobox/input-text.slds.css +41 -68
  108. package/src/lightning/helptext/button-icon.slds.css +1 -1
  109. package/src/lightning/helptext/form-element.slds.css +54 -54
  110. package/src/lightning/icon/icon.slds.css +12 -25
  111. package/src/lightning/input/form-element.slds.css +54 -54
  112. package/src/lightning/inputAddress/form-element.slds.css +54 -54
  113. package/src/lightning/inputAddress/input-address.slds.css +1 -2
  114. package/src/lightning/inputAddress/input-text.slds.css +41 -68
  115. package/src/lightning/inputAddress/inputAddress.js +1 -0
  116. package/src/lightning/inputAddress/inputAddress.js-meta.xml +3 -0
  117. package/src/lightning/inputLocation/form-element.slds.css +54 -54
  118. package/src/lightning/inputLocation/input-location.slds.css +1 -2
  119. package/src/lightning/inputLocation/input-text.slds.css +41 -68
  120. package/src/lightning/inputName/form-element.slds.css +54 -54
  121. package/src/lightning/inputName/input-text.slds.css +41 -68
  122. package/src/lightning/interactiveDialogBase/interactive-dialog-base.slds.css +0 -3
  123. package/src/lightning/interactiveDialogBase/interactiveDialogBase.js-meta.xml +6 -0
  124. package/src/lightning/lookupAddress/form-element.slds.css +54 -54
  125. package/src/lightning/lookupAddress/listbox.slds.css +51 -99
  126. package/src/lightning/lookupAddress/location.js +2 -0
  127. package/src/lightning/lookupAddress/lookup-address.slds.css +0 -2
  128. package/src/lightning/lookupAddress/lookupAddress.js +15 -10
  129. package/src/lightning/menuDivider/menu-divider.slds.css +0 -2
  130. package/src/lightning/menuItem/menu-item.slds.css +8 -2
  131. package/src/lightning/menuSubheader/menu-subheader.slds.css +1 -2
  132. package/src/lightning/modalBase/modal-base.slds.css +3 -3
  133. package/src/lightning/modalBase/modalBase.js +0 -8
  134. package/src/lightning/modalBase/modalBase.js-meta.xml +6 -0
  135. package/src/lightning/modalBody/modal-body.slds.css +1 -2
  136. package/src/lightning/modalFooter/modal-footer.slds.css +2 -2
  137. package/src/lightning/modalFooter/modalFooter.js +0 -21
  138. package/src/lightning/modalHeader/modal-header.slds.css +1 -2
  139. package/src/lightning/modalHeader/modalHeader.js +0 -22
  140. package/src/lightning/overlay/overlay.js-meta.xml +6 -0
  141. package/src/lightning/pill/pill.slds.css +32 -58
  142. package/src/lightning/pillContainer/button.slds.css +1 -1
  143. package/src/lightning/pillContainer/listbox.slds.css +51 -99
  144. package/src/lightning/pillContainer/pill-container.slds.css +6 -10
  145. package/src/lightning/pillContainer/pill.slds.css +32 -58
  146. package/src/lightning/popup/popover.slds.css +0 -2
  147. package/src/lightning/primitiveBubble/primitiveBubble.js-meta.xml +6 -0
  148. package/src/lightning/primitiveButton/primitiveButoon.js-meta.xml +6 -0
  149. package/src/lightning/primitiveCellCheckbox/checkbox.css +2 -0
  150. package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +16 -38
  151. package/src/lightning/primitiveCustomCell/primitiveCustomCell.js +26 -1
  152. package/src/lightning/primitiveHeaderFactory/nonsortableHeader.css +1 -0
  153. package/src/lightning/primitiveHeaderFactory/selectableHeader.css +2 -0
  154. package/src/lightning/primitiveIcon/icon.slds.css +12 -25
  155. package/src/lightning/primitiveIcon/primitiveIcon.js-meta.xml +6 -0
  156. package/src/lightning/primitiveIframe/primitiveIframe.js +3 -1
  157. package/src/lightning/primitiveInputCheckbox/form-element.slds.css +54 -54
  158. package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.js +5 -2
  159. package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.js-meta.xml +6 -0
  160. package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +54 -54
  161. package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +6 -4
  162. package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.js +5 -2
  163. package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.js-meta.xml +6 -0
  164. package/src/lightning/primitiveInputColor/form-element.slds.css +54 -54
  165. package/src/lightning/primitiveInputColor/input-color.slds.css +2 -3
  166. package/src/lightning/primitiveInputColor/input-text.slds.css +41 -68
  167. package/src/lightning/primitiveInputColor/primitiveInputColor.js +5 -2
  168. package/src/lightning/primitiveInputColor/primitiveInputColor.js-meta.xml +6 -0
  169. package/src/lightning/primitiveInputFile/button.slds.css +1 -1
  170. package/src/lightning/primitiveInputFile/form-element.slds.css +54 -54
  171. package/src/lightning/primitiveInputFile/input-file.slds.css +1 -4
  172. package/src/lightning/primitiveInputFile/primitiveInputFile.js +4 -2
  173. package/src/lightning/primitiveInputFile/primitiveInputFile.js-meta.xml +6 -0
  174. package/src/lightning/primitiveInputRadio/primitiveInputRadio.js +4 -2
  175. package/src/lightning/primitiveInputSimple/form-element.slds.css +54 -54
  176. package/src/lightning/primitiveInputSimple/input-text.slds.css +41 -68
  177. package/src/lightning/primitiveInputSimple/primitiveInputSimple.js-meta.xml +6 -0
  178. package/src/lightning/primitiveInputToggle/form-element.slds.css +54 -54
  179. package/src/lightning/primitiveInputToggle/input-toggle.slds.css +50 -27
  180. package/src/lightning/primitiveInputToggle/primitiveInputToggle.js +5 -2
  181. package/src/lightning/primitiveInputToggle/primitiveInputToggle.js-meta.xml +6 -0
  182. package/src/lightning/progressBar/progress-bar.slds.css +8 -10
  183. package/src/lightning/progressRing/progress-ring.slds.css +0 -23
  184. package/src/lightning/progressStep/progressStep.js +1 -14
  185. package/src/lightning/radioGroup/form-element.slds.css +54 -54
  186. package/src/lightning/radioGroup/radioGroup.html +1 -2
  187. package/src/lightning/radioGroup/radioGroup.js +1 -0
  188. package/src/lightning/routingService/routingService.js +31 -5
  189. package/src/lightning/select/form-element.slds.css +54 -54
  190. package/src/lightning/select/select.slds.css +4 -2
  191. package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.css +4 -0
  192. package/src/lightning/spinner/spinner.slds.css +62 -62
  193. package/src/lightning/tab/tab.js +4 -2
  194. package/src/lightning/tab/tab.slds.css +14 -7
  195. package/src/lightning/tabBar/tab-bar.slds.css +16 -6
  196. package/src/lightning/tabset/__docs__/tabset.md +24 -1
  197. package/src/lightning/tabset/tabset.js +25 -38
  198. package/src/lightning/tabset/tabset.slds.css +0 -2
  199. package/src/lightning/textarea/form-element.slds.css +54 -54
  200. package/src/lightning/textarea/textarea.js +5 -1
  201. package/src/lightning/textarea/textarea.slds.css +22 -9
  202. package/src/lightning/timepicker/form-element.slds.css +54 -54
  203. package/src/lightning/timepicker/timepicker.js-meta.xml +6 -0
  204. package/src/lightning/timepicker/timepicker.slds.css +2 -2
  205. package/src/lightning/toast/__docs__/toast.md +20 -22
  206. package/src/lightning/toast/button-icon.slds.css +1 -1
  207. package/src/lightning/toast/icon.slds.css +12 -25
  208. package/src/lightning/toast/toast.js +15 -12
  209. package/src/lightning/toast/toast.slds.css +6 -18
  210. package/src/lightning/toastContainer/toast.slds.css +6 -18
  211. package/src/lightning/toastContainer/toastContainer.js +25 -17
  212. package/src/lightning/tooltipLibrary/tooltipLibrary.js +12 -9
  213. package/src/lightning/tree/tree.js +2 -0
  214. package/src/lightning/utils/classSet.js +9 -3
  215. package/src/lightning/utilsPrivate/formatUtils.js +158 -0
  216. package/src/lightning/utilsPrivate/textUtils.js +16 -0
  217. package/src/lightning/utilsPrivate/utilsPrivate.js +56 -15
  218. package/src/lightning/utilsPrivate/validationUtils.js +59 -0
  219. package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +0 -2
  220. package/src/lightning/datatable/resizeSensor.js +0 -244
  221. package/src/lightning/formattedRichText/linkify.js +0 -43
  222. package/src/lightning/utilsPrivate/smartSetAttribute.js +0 -19
@@ -25,21 +25,22 @@
25
25
  * for any needed updates to keep these files in sync
26
26
  */
27
27
 
28
- @supports (--styling-hooks: '') {
29
- /* TODO: Swap with utility classes */
30
- :host([data-render-mode="shadow"]) fieldset {
28
+ /* TODO: Swap with utility classes */
29
+
30
+ :host([data-render-mode="shadow"]) fieldset {
31
31
  border: 0;
32
32
  margin: 0;
33
33
  padding: 0;
34
34
  }
35
35
 
36
- /* FORM ELEMENT: BASE */
37
- :host([data-render-mode="shadow"]) .slds-form-element {
36
+ /* FORM ELEMENT: BASE */
37
+
38
+ :host([data-render-mode="shadow"]) .slds-form-element {
38
39
  position: relative;
39
40
  min-width: 0;
40
41
  }
41
42
 
42
- :host([data-render-mode="shadow"]) .slds-form-element__label {
43
+ :host([data-render-mode="shadow"]) .slds-form-element__label {
43
44
  overflow-wrap: break-word;
44
45
  word-wrap: break-word;
45
46
  hyphens: auto;
@@ -51,20 +52,20 @@
51
52
  margin-block-end: calc(var(--slds-g-spacing-1) / 2);
52
53
  }
53
54
 
54
- :host([data-render-mode="shadow"]) .slds-form-element__label:empty {
55
+ :host([data-render-mode="shadow"]) .slds-form-element__label:empty {
55
56
  margin: 0;
56
57
  }
57
58
 
58
- :host([data-render-mode="shadow"]) .slds-form-element__control {
59
+ :host([data-render-mode="shadow"]) .slds-form-element__control {
59
60
  clear: left; /* NOTE: Ideally we want left to be inline-start but browser support is not ready for that value. We need to figure out better RTL support */
60
61
  position: relative;
61
62
  }
62
63
 
63
- :host([data-render-mode="shadow"]) .slds-form-element__control .slds-radio {
64
+ :host([data-render-mode="shadow"]) .slds-form-element__control .slds-radio {
64
65
  display: block;
65
66
  }
66
67
 
67
- :host([data-render-mode="shadow"]) .slds-form-element__icon {
68
+ :host([data-render-mode="shadow"]) .slds-form-element__icon {
68
69
  display: inline-block;
69
70
  position: relative;
70
71
  padding-block-start: var(--slds-g-spacing-1);
@@ -73,42 +74,42 @@
73
74
  z-index: 1;
74
75
  }
75
76
 
76
- :host([data-render-mode="shadow"]) .slds-form-element__icon .slds-button_icon {
77
+ :host([data-render-mode="shadow"]) .slds-form-element__icon .slds-button_icon {
77
78
  position: relative;
78
79
  }
79
80
 
80
- :host([data-render-mode="shadow"]) .slds-form-element__help,:host([data-render-mode="shadow"])
81
+ :host([data-render-mode="shadow"]) .slds-form-element__help,:host([data-render-mode="shadow"])
81
82
  .slds-form-element__helper {
82
83
  font-size: var(--slds-g-font-scale-neg-3);
83
84
  margin-block-start: calc(var(--slds-g-spacing-1) / 2);
84
85
  display: block;
85
86
  }
86
87
 
87
- :host([data-render-mode="shadow"]) .slds-form-element_edit .slds-form-element__static {
88
+ :host([data-render-mode="shadow"]) .slds-form-element_edit .slds-form-element__static {
88
89
  width: calc(100% - var(--slds-g-sizing-7));
89
90
  }
90
91
 
91
- :host([data-render-mode="shadow"]) .slds-form-element_readonly {
92
+ :host([data-render-mode="shadow"]) .slds-form-element_readonly {
92
93
  flex-basis: 0%;
93
94
  border-bottom: var(--slds-g-sizing-border-1) solid var(--slds-g-color-border-1);
94
95
  margin-block-end: 0;
95
96
  }
96
97
 
97
- :host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__control {
98
+ :host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__control {
98
99
  padding-block-start: calc(var(--slds-g-spacing-1) / 2);
99
100
  padding-block-end: calc(var(--slds-g-spacing-1) / 2);
100
101
  }
101
102
 
102
- :host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__label {
103
+ :host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__label {
103
104
  margin-block-end: 0;
104
105
  }
105
106
 
106
- :host([data-render-mode="shadow"]) .slds-form-element__legend {
107
+ :host([data-render-mode="shadow"]) .slds-form-element__legend {
107
108
  font-weight: var(--slds-g-font-weight-7);
108
109
  float: left;
109
110
  }
110
111
 
111
- :host([data-render-mode="shadow"]) .slds-form-element__addon {
112
+ :host([data-render-mode="shadow"]) .slds-form-element__addon {
112
113
  display: inline-block;
113
114
  margin-block-start: 0;
114
115
  margin-block-end: 0;
@@ -117,7 +118,7 @@
117
118
  align-self: center;
118
119
  }
119
120
 
120
- :host([data-render-mode="shadow"]) .slds-form-element__static {
121
+ :host([data-render-mode="shadow"]) .slds-form-element__static {
121
122
  overflow-wrap: break-word;
122
123
  word-wrap: break-word;
123
124
  word-break: break-word;
@@ -128,20 +129,20 @@
128
129
  width: 100%;
129
130
  }
130
131
 
131
- :host([data-render-mode="shadow"]) .slds-form-element__static.slds-text-longform *:last-child {
132
+ :host([data-render-mode="shadow"]) .slds-form-element__static.slds-text-longform *:last-child {
132
133
  margin-block-end: 0;
133
134
  }
134
135
 
135
- :host([data-render-mode="shadow"]) .slds-form-element__static:empty {
136
+ :host([data-render-mode="shadow"]) .slds-form-element__static:empty {
136
137
  min-height: calc(var(--slds-g-sizing-6) + 1px);
137
138
  vertical-align: bottom;
138
139
  }
139
140
 
140
- :host([data-render-mode="shadow"]) .slds-form-element__static--edit {
141
+ :host([data-render-mode="shadow"]) .slds-form-element__static--edit {
141
142
  width: calc(100% - var(--slds-g-sizing-7));
142
143
  }
143
144
 
144
- :host([data-render-mode="shadow"]) .slds-required {
145
+ :host([data-render-mode="shadow"]) .slds-required {
145
146
  color: var(--slds-g-color-error-base-50);
146
147
  margin-block-start: 0;
147
148
  margin-block-end: 0;
@@ -149,25 +150,25 @@
149
150
  margin-inline-end: calc(var(--slds-g-spacing-1) / 2);
150
151
  }
151
152
 
152
- :host([data-render-mode="shadow"]) .slds-has-error .slds-form-element__help {
153
+ :host([data-render-mode="shadow"]) .slds-has-error .slds-form-element__help {
153
154
  color: var(--slds-g-color-error-1);
154
155
  }
155
156
 
156
- :host([data-render-mode="shadow"][invalid]) .slds-form-element__help {
157
+ :host([data-render-mode="shadow"][invalid]) .slds-form-element__help {
157
158
  color: var(--slds-g-color-error-1);
158
159
  }
159
160
 
160
- /* --------------------------------------- */
161
+ /* --------------------------------------- */
161
162
 
162
- /* FORM ELEMENT: STACKED */
163
+ /* FORM ELEMENT: STACKED */
163
164
 
164
- :host([data-render-mode="shadow"][variant='label-stacked']) {
165
+ :host([data-render-mode="shadow"][variant='label-stacked']) {
165
166
  display: block;
166
167
  }
167
168
 
168
- /* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
169
+ /* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
169
170
 
170
- /* :host([variant='label-stacked']):not(.slds-form-element_readonly) {
171
+ /* :host([variant='label-stacked']):not(.slds-form-element_readonly) {
171
172
  margin-block-end: var(--slds-g-spacing-2);
172
173
  }
173
174
 
@@ -175,54 +176,54 @@
175
176
  padding: 0 var(--slds-g-spacing-1);
176
177
  } */
177
178
 
178
- /* :host([variant='label-stacked']):not([class*="slds-size"]) {
179
+ /* :host([variant='label-stacked']):not([class*="slds-size"]) {
179
180
  width: 100%;
180
181
  flex-basis: 100%;
181
182
  } */
182
183
 
183
- :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element {
184
+ :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element {
184
185
  padding: 0;
185
186
  margin-block-end: 0;
186
187
  }
187
188
 
188
- :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
189
+ :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
189
190
  border-bottom: 0; /* Remove border when using legacy version of slds-form-element */
190
191
  padding-inline-start: 0;
191
192
  }
192
193
 
193
- :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
194
+ :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
194
195
  width: 100%;
195
196
  flex-basis: 100%;
196
197
  clear: left;
197
198
  }
198
199
 
199
- :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__icon {
200
+ :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__icon {
200
201
  float: none;
201
202
  padding-block-start: var(--slds-g-spacing-1);
202
203
  }
203
204
 
204
- /* --------------------------------------- */
205
+ /* --------------------------------------- */
205
206
 
206
- /* FORM ELEMENT: INLINE */
207
+ /* FORM ELEMENT: INLINE */
207
208
 
208
- :host([data-render-mode="shadow"][variant='label-inline']) {
209
+ :host([data-render-mode="shadow"][variant='label-inline']) {
209
210
  display: block;
210
211
  }
211
212
 
212
- /*
213
+ /*
213
214
  we have to combine with slds class here to avoid duplication
214
215
  of this rule in child elements who import this stylesheet
215
216
  in lighting-input this slds class is synonymous with the variant
216
217
  */
217
218
 
218
- :host([data-render-mode="shadow"][variant='label-inline'].slds-form-element_horizontal) {
219
+ :host([data-render-mode="shadow"][variant='label-inline'].slds-form-element_horizontal) {
219
220
  padding: var(--slds-g-spacing-1);
220
221
  margin-block-end: var(--slds-g-spacing-2);
221
222
  }
222
223
 
223
- /* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
224
+ /* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
224
225
 
225
- /* :host([variant='label-inline']):not(.slds-form-element_readonly) {
226
+ /* :host([variant='label-inline']):not(.slds-form-element_readonly) {
226
227
  margin-block-end: var(--slds-g-spacing-2);
227
228
  }
228
229
 
@@ -235,11 +236,11 @@
235
236
  padding: var(--slds-g-spacing-1);
236
237
  } */
237
238
 
238
- :host([data-render-mode="shadow"][variant='label-inline']).slds-is-edited {
239
+ :host([data-render-mode="shadow"][variant='label-inline']).slds-is-edited {
239
240
  padding-block-start: var(--slds-g-sizing-6)
240
241
  }
241
242
 
242
- @media (width >= 48em) {
243
+ @media (width >= 48em) {
243
244
  :host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
244
245
  max-width: calc(33% - var(--slds-g-sizing-6)); /* Removing icon width for when the help-text icon is present */
245
246
  flex-basis: calc(33% - var(--slds-g-sizing-6)); /* Some form element controls are set to display:flex */
@@ -281,35 +282,34 @@
281
282
  }
282
283
  }
283
284
 
284
- /* --------------------------------------- */
285
+ /* --------------------------------------- */
285
286
 
286
- /* FORM ELEMENT: COMPOUND */
287
+ /* FORM ELEMENT: COMPOUND */
287
288
 
288
- :host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element__row {
289
+ :host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element__row {
289
290
  display: flex;
290
291
  margin-bottom: var(--slds-g-spacing-1);
291
292
  margin-left: calc(var(--slds-g-spacing-1) * -1);
292
293
  margin-right: calc(var(--slds-g-spacing-1) * -1);
293
294
  }
294
295
 
295
- :host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element__row .slds-form-element__label {
296
+ :host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element__row .slds-form-element__label {
296
297
  padding-top: 0;
297
298
  }
298
299
 
299
- :host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element {
300
+ :host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element {
300
301
  padding-left: var(--slds-g-spacing-1);
301
302
  padding-right: var(--slds-g-spacing-1);
302
303
  }
303
304
 
304
- :host([data-render-mode="shadow"]) .slds-form-element_address .slds-form-element__row {
305
+ :host([data-render-mode="shadow"]) .slds-form-element_address .slds-form-element__row {
305
306
  align-items: flex-end;
306
307
  }
307
308
 
308
- /* --------------------------------------- */
309
+ /* --------------------------------------- */
309
310
 
310
- /* FORM ELEMENT: HIDDEN */
311
+ /* FORM ELEMENT: HIDDEN */
311
312
 
312
- :host([data-render-mode="shadow"][variant='label-hidden']) .slds-form-element__label {
313
+ :host([data-render-mode="shadow"][variant='label-hidden']) .slds-form-element__label {
313
314
  display: none
314
315
  }
315
- }
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <LightningComponentBundle xmlns="xmlns=http://soap.sforce.com/2006/04/metadata">
3
+ <capabilities>
4
+ <capability>lightning__ServerRenderableWithHydration</capability>
5
+ </capabilities>
6
+ </LightningComponentBundle>
@@ -1,8 +1,9 @@
1
1
 
2
2
  /* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
3
3
  Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
4
- @supports (--styling-hooks: '') {
4
+
5
5
  /* ASSISTIVE TEXT */
6
+
6
7
  :host([data-render-mode="shadow"]) .slds-assistive-text {
7
8
  position: absolute !important;
8
9
  margin: -1px !important;
@@ -15,4 +16,3 @@
15
16
  text-transform: none !important;
16
17
  white-space: nowrap !important;
17
18
  }
18
- }
@@ -1,12 +1,10 @@
1
- The `LightningToast` component displays a toast notification with an icon, label, message, and links. Use a toast to convey small pieces of information to the user, providing feedback and confirmation after the user takes an action. Toasts can disappear after a certain duration or until the user clicks the close button.
1
+ The `lightning/toast` module displays a toast notification with an icon, label, message, and links. Use a toast notification to convey small pieces of information to the user, such as providing feedback and confirmation after the user takes an action. You can set toast notifications to disappear after a certain duration or until the user clicks the close button.
2
2
 
3
3
  ### Show a Toast
4
4
 
5
- To show a toast, call the static function `show(config, comp)` from `lightning/toast` and provide a toast configuration and a reference of the local component as parameters.
6
- The function also creates a single page-level toast container if one does not exist.
5
+ To show a toast notification, call the function `show(config, comp)` from `lightning/toast` and provide a toast config and a reference to the local component as parameters. The function creates a single page-level toast container if one does not exist. See the `config` attributes section below for a list of properties to include in the config.
7
6
 
8
7
  ```javascript
9
- // c/myComponent.js
10
8
  import { LightningElement } from 'lwc';
11
9
  import Toast from 'lightning/toast';
12
10
 
@@ -40,32 +38,39 @@ export default class MyComponent extends LightningElement {
40
38
  }
41
39
  }
42
40
  ```
41
+
43
42
  In this example, the toast configuration uses two ways to specify links (see note below). The toast displays a sticky mode informational toast message with a `label` string as the toast title and a `message` string as the toast message. The `{0}`, `{1}`, `{salesforceLink}`, and `{slackLink}` placeholders are replaced with their `url` specified links.
44
43
 
45
- A page-level [`LightningToastContainer` component](/docs/component-library/bundle/lightning-toast-container/documentation) manages and displays the toast component.
44
+ A page-level [`ToastContainer` component](/docs/component-library/bundle/lightning-toast-container/documentation) manages and displays the toast component.
46
45
 
47
- **_NOTE:_** `label` can have index-based or name-based link placeholders. In the case of index-based link placeholders, `labelLinks` must be defined as an array, otherwise, `labelLinks` must be defined as a map. Same applies to `message`.
46
+ **_NOTE:_** `label` can have index-based or name-based link placeholders. In the case of index-based link placeholders, `labelLinks` must be defined as an array. Otherwise, `labelLinks` must be defined as individual objects. The same rules apply to `message`.
48
47
 
49
48
  ### Component Styling
50
49
 
51
- `LightningToast` implements the [toast](https://www.lightningdesignsystem.com/components/toast/) blueprint in the Salesforce Lightning Design System (SLDS). [SLDS styling hooks](https://www.lightningdesignsystem.com/components/toast/#Styling-Hooks-Overview) aren't supported with programmatic creation of toasts via `Toast.show()`.
50
+ `Toast` implements the [toast](https://www.lightningdesignsystem.com/components/toast/) blueprint in the Salesforce Lightning Design System (SLDS). [SLDS styling hooks](https://www.lightningdesignsystem.com/components/toast/#Styling-Hooks-Overview) aren't supported with programmatic creation of toasts via `Toast.show()`.
51
+
52
+ #### Small screen / Mobile environment
53
+
54
+ `Toast` is responsive to your screen resolution. For smaller screens or mobile environments, the toast's **icon** and **description** (text stored in `message`, and `messageLinks`, for example) is **not shown** due to the screen's width limitation (see [Toast blueprint screen variants](https://www.lightningdesignsystem.com/guidelines/messaging/components/toasts/#flavor-variants-screen).
55
+
56
+ On small screens and mobile environments, we recommend that you provide links in the toast's title using `label` and `labelLinks` in order to have links visible and interactive.
52
57
 
53
58
  ### `config` attributes
54
59
 
55
60
  Attribute | Description |
56
61
  |----------| ------------ |
57
- | `label` (required) | Title of the toast, it can contain placeholders in the form of `{0} ... {N}` (index-based) or `{name} ... {someOtherName}` (name-based). The placeholders are replaced with the links on `labelLinks`. |
58
- | `labelLinks` | [{url, label}], which replaces the `{0} ... {N}` indexed placeholders in `label` or `{ name: {url, label} }`, which replaces the `{name} ... {someOtherName}` named placeholders in `label`. |
59
- | `message` | Description of the toast, it can contain placeholders in the form of `{0} ... {N}` (index-based) or `{name} ... {someOtherName}` (name-based). The placeholders are replaced with the links on `messageLinks`. |
60
- | `messageLinks` | [{url, label}], which replaces the `{0} ... {N}` indexed placeholders in `message` or `{ name: {url, label} }`, which replaces the `{name} ... {someOtherName}` named placeholders in `message`. |
62
+ | `label` (required) | Title of the toast. `label` can contain link placeholders in the form of `{0} ... {N}` (index-based) or `{name} ... {someOtherName}` (name-based). The placeholders are replaced with the links in `labelLinks`. |
63
+ | `labelLinks` | `[{url, label}]`, which replaces the `{0} ... {N}` index-based placeholders in `label` or `{ name: {url, label} }`, which replaces the `{name} ... {someOtherName}` named placeholders in `label`. |
64
+ | `message` | Description of the toast. `message` can contain link placeholders in the form of `{0} ... {N}` (index-based) or `{name} ... {someOtherName}` (name-based). The placeholders are replaced with the links on `messageLinks`. |
65
+ | `messageLinks` | `[{url, label}]`, which replaces the `{0} ... {N}` index-based placeholders in `message` or `{ name: {url, label} }`, which replaces the `{name} ... {someOtherName}` named placeholders in `message`. |
61
66
  | `variant` | Appearance of the toast. |
62
67
  | `mode` | Persistence of the toast. |
63
68
 
64
- **_NOTE:_** When `labelLinks` (or `messageLinks`) is passed to the `config` parameter, the content of `label` (or `message`) is rendered using [`lightning-formatted-rich-text`](https://developer.salesforce.com/docs/component-library/bundle/lightning-formatted-rich-text/documentation). consult the documentation for expected result when link presents.
69
+ **_NOTE:_** When `labelLinks` (or `messageLinks`) is passed to the `config` parameter, the content of `label` (or `message`) is rendered using [`lightning-formatted-rich-text`](https://developer.salesforce.com/docs/component-library/bundle/lightning-formatted-rich-text/documentation). Consult the documentation for expected styling when rendering a link.
65
70
 
66
71
  #### `variant` attribute
67
72
 
68
- The `variant` attribute sets the component's color and icon. It supports these values.
73
+ The `variant` attribute sets the component's color and icon.
69
74
 
70
75
  | Value | Color | Icon |
71
76
  | --- | --- | --- |
@@ -76,11 +81,10 @@ The `variant` attribute sets the component's color and icon. It supports these v
76
81
 
77
82
  #### `mode` attribute
78
83
 
79
- The `mode` attribute sets the component's dismissal. It supports these values.
80
- - `dismissible` - The component automatically disappears after a certain duration. The user can dismiss it early by clicking the close button. The time duration for `dismissible` is 4.8 seconds, or 9.6 seconds if the toast contains a link.
84
+ The `mode` attribute sets the component's dismissal.
85
+ - `dismissible` - The component automatically disappears after a certain duration. The user can dismiss it early by clicking the close button. The time duration for `dismissible` is 4.8 seconds when the toast doesn't contain a link or 9.6 seconds if the toast contains a link.
81
86
  - `sticky` - The component stays on screen until the user clicks the close button.
82
87
 
83
- ##### Default Mode
84
88
  If a `mode` value isn't provided, the default `mode` is determined by the value of `variant` and whether the `toast` has a link or links present in `label` or `message`.
85
89
 
86
90
  | Variant | Has link? | Default Mode |
@@ -93,9 +97,3 @@ If a `mode` value isn't provided, the default `mode` is determined by the value
93
97
  | `warning` | No | `sticky`|
94
98
  | `error` | Yes | `sticky`|
95
99
  | `error` | No | `sticky`|
96
-
97
- #### Small screen / Mobile environment
98
-
99
- `LightningToast` is responsive to your screen resolution. For smaller screens or mobile environments, the toast's **icon** and **description** (i.e. text stored in `message`, and `messageLinks`) is **not shown** due to the screen's width limitation (see [Toast blueprint screen variants](https://www.lightningdesignsystem.com/guidelines/messaging/components/toasts/#flavor-variants-screen).
100
-
101
- On small screens and mobile environments, we recommend that you provide links in the toast's title (ie `label` and `labelLinks`) in order to have links visible and interactive.
@@ -220,7 +220,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
220
220
 
221
221
  /* Border radius - shared */
222
222
  --sds-c-button-radius-border-startstart: var(
223
- --slds-c-button-neutral-radius-border-startstart,
223
+ --slds-c-button-radius-border-startstart,
224
224
  var(
225
225
  --slds-c-button-radius-border,
226
226
  var(--slds-s-button-radius-border-startstart, var(--slds-s-button-radius-border))
@@ -57,44 +57,34 @@
57
57
  * Additionally, LBC are currently relying on 'part' attributes to
58
58
  * receive styling. Authoring styles that rely on slots is not recommended.
59
59
  */
60
- @supports (--styling-hooks: '') {
61
- :host([data-render-mode="shadow"][size='xxx-small']) {
60
+ :host([data-render-mode="shadow"][size='xxx-small']) {
62
61
  --slds-c-icon-sizing: var(--slds-g-sizing-3);
63
62
  }
64
-
65
- :host([data-render-mode="shadow"][size='xx-small']) {
63
+ :host([data-render-mode="shadow"][size='xx-small']) {
66
64
  --slds-c-icon-sizing: calc(var(--slds-g-sizing-1) + var(--slds-g-sizing-4));
67
65
  }
68
-
69
- :host([data-render-mode="shadow"][size='x-small']) {
66
+ :host([data-render-mode="shadow"][size='x-small']) {
70
67
  --slds-c-icon-sizing: var(--slds-g-sizing-5);
71
68
  }
72
-
73
- :host([data-render-mode="shadow"][size='small']) {
69
+ :host([data-render-mode="shadow"][size='small']) {
74
70
  --slds-c-icon-sizing: var(--slds-g-sizing-7);
75
71
  }
76
-
77
- :host([data-render-mode="shadow"][size='large']) {
72
+ :host([data-render-mode="shadow"][size='large']) {
78
73
  --slds-c-icon-sizing: var(--slds-g-sizing-10);
79
74
  }
80
-
81
- :host([data-render-mode="shadow"][variant='warning']) {
75
+ :host([data-render-mode="shadow"][variant='warning']) {
82
76
  --slds-c-icon-color-foreground: var(--slds-g-color-warning-1);
83
77
  }
84
-
85
- :host([data-render-mode="shadow"][variant='success']) {
78
+ :host([data-render-mode="shadow"][variant='success']) {
86
79
  --slds-c-icon-color-foreground: var(--slds-g-color-success-1);
87
80
  }
88
-
89
- :host([data-render-mode="shadow"][variant='error']) {
81
+ :host([data-render-mode="shadow"][variant='error']) {
90
82
  --slds-c-icon-color-foreground: var(--slds-g-color-error-1);
91
83
  }
92
-
93
- :host([data-render-mode="shadow"][variant='light']) {
84
+ :host([data-render-mode="shadow"][variant='light']) {
94
85
  --slds-c-icon-color-foreground: var(--slds-g-color-neutral-base-70);
95
86
  }
96
-
97
- :host([data-render-mode="shadow"]) [part='boundary'] {
87
+ :host([data-render-mode="shadow"]) [part='boundary'] {
98
88
  /* --sds-c-icon-color-background: var(--slds-c-icon-color-background); */
99
89
  --sds-c-icon-radius-border: var(--slds-c-icon-radius-border, var(--slds-g-radius-border-2));
100
90
  --sds-c-icon-sizing-border: var(--slds-c-icon-sizing-border);
@@ -123,19 +113,16 @@
123
113
  */
124
114
  display: inline-flex;
125
115
  }
126
-
127
- :host([data-render-mode="shadow"]) [part='icon'] {
116
+ :host([data-render-mode="shadow"]) [part='icon'] {
128
117
  --sds-c-icon-color-foreground: var(--slds-c-icon-color-foreground, var(--slds-g-color-on-accent-1));
129
118
  --sds-c-icon-sizing-height: var(--slds-c-icon-sizing-height, var(--slds-c-icon-sizing, var(--slds-g-sizing-9)));
130
119
  --sds-c-icon-sizing-width: var(--slds-c-icon-sizing-width, var(--slds-c-icon-sizing, var(--slds-g-sizing-9)));
131
120
  }
132
-
133
- :host([data-render-mode="shadow"][icon-name*='action']) {
121
+ :host([data-render-mode="shadow"][icon-name*='action']) {
134
122
  --slds-c-icon-spacing-block: var(--slds-g-sizing-3);
135
123
  --slds-c-icon-spacing-inline: var(--slds-g-sizing-3);
136
124
  --slds-c-icon-radius-border: calc(var(--slds-g-radius-border-circle) / 2);
137
125
  }
138
- }
139
126
  /**
140
127
  * P R I V A T E
141
128
  *
@@ -5,6 +5,7 @@ import {
5
5
  normalizeString,
6
6
  isMacOS,
7
7
  isiOS,
8
+ isCSR,
8
9
  } from 'lightning/utilsPrivate';
9
10
  import {
10
11
  instanceName,
@@ -592,19 +593,21 @@ export default class Toast extends LightningShadowBaseClass {
592
593
  * @param {HTMLElement} source - source element which trigger the toast showing, typically this from local component
593
594
  */
594
595
  static show(config, source) {
595
- // make sure the page-level container is created
596
- ToastContainer.instance();
597
- // create and dispatch the ShowToastEvent
598
- const event = new ShowToastEvent({
599
- ...config,
600
- toast: this,
601
- source,
602
- });
596
+ if (isCSR) {
597
+ // make sure the page-level container is created
598
+ ToastContainer.instance();
599
+ // create and dispatch the ShowToastEvent
600
+ const event = new ShowToastEvent({
601
+ ...config,
602
+ toast: this,
603
+ source,
604
+ });
603
605
 
604
- if (source) {
605
- source.dispatchEvent(event);
606
- } else {
607
- document.body.dispatchEvent(event);
606
+ if (source) {
607
+ source.dispatchEvent(event);
608
+ } else {
609
+ document.body.dispatchEvent(event);
610
+ }
608
611
  }
609
612
  }
610
613
  }
@@ -1,13 +1,13 @@
1
1
 
2
- @supports (--styling-hooks: '') {
3
2
  /* re-assign current slds hooks using deprecated naming conventions */
4
3
  :host([data-render-mode="shadow"]) {
5
- --slds-c-toast-spacing-block-end: var(--slds-c-toast-spacing-blockend);
6
- --slds-c-toast-spacing-block-start: var(--slds-c-toast-spacing-blockstart);
7
- --slds-c-toast-spacing-inline-end: var(--slds-c-toast-spacing-inlineend);
8
- --slds-c-toast-spacing-inline-start: var(--slds-c-toast-spacing-inlinestart);
4
+ /* stylelint-disable */
5
+ --slds-c-toast-spacing-blockend: var(--slds-c-toast-spacing-block-end);
6
+ --slds-c-toast-spacing-blockstart: var(--slds-c-toast-spacing-block-start);
7
+ --slds-c-toast-spacing-inlineend: var(--slds-c-toast-spacing-inline-end);
8
+ --slds-c-toast-spacing-inlinestart: var(--slds-c-toast-spacing-inline-start);
9
+ /* stylelint-enable */
9
10
  }
10
-
11
11
  :host([data-render-mode="shadow"]) .slds-notify_toast {
12
12
  display: inline-flex;
13
13
  align-items: center;
@@ -25,32 +25,26 @@
25
25
  text-align: left;
26
26
  justify-content: flex-start;
27
27
  }
28
-
29
28
  :host([data-render-mode="shadow"]) .slds-notify_toast a {
30
29
  color: currentcolor;
31
30
  border: var(--slds-g-sizing-border-1) solid transparent;
32
31
  border-radius: var(--slds-g-radius-border-2);
33
32
  }
34
-
35
33
  :host([data-render-mode="shadow"]) .slds-notify_toast a:hover,:host([data-render-mode="shadow"])
36
34
  .slds-notify_toast a:focus {
37
35
  text-decoration: none;
38
36
  outline: 0;
39
37
  }
40
-
41
38
  :host([data-render-mode="shadow"]) .slds-notify_toast a:focus {
42
39
  box-shadow: 0 0 3px var(--slds-g-info-container-1);
43
40
  border: var(--slds-g-sizing-border-1) solid var(--slds-g-color-on-info-1);
44
41
  }
45
-
46
42
  :host([data-render-mode="shadow"]) .slds-notify_toast a:active {
47
43
  color: var(--slds-g-color-neutral-100-opacity-50, rgba(255, 255, 255, 50%));
48
44
  }
49
-
50
45
  :host([data-render-mode="shadow"]) .slds-notify_toast a[disabled] {
51
46
  color: var(--slds-g-color-neutral-100-opacity-10, rgba(255, 255, 255, 15%));
52
47
  }
53
-
54
48
  :host([data-render-mode="shadow"]) .slds-notify_toast .slds-notify__close {
55
49
  float: right;
56
50
  position: absolute;
@@ -59,19 +53,16 @@
59
53
  margin-inline-start: var(--slds-g-spacing-1);
60
54
  transform: translateY(-0.125rem);
61
55
  }
62
-
63
56
  :host([data-render-mode="shadow"]) .slds-region_narrow .slds-notify_toast {
64
57
  min-width: auto;
65
58
  width: 100%;
66
59
  margin-inline-start: 0;
67
60
  }
68
-
69
61
  /* TODO W-12674349: remove after name-value-list utils are added */
70
62
  :host([data-render-mode="shadow"]) .slds-list--inline {
71
63
  display: inline-flex;
72
64
  max-width: 100%;
73
65
  }
74
-
75
66
  /* TODO W-12674349: remove after assistive text util is added */
76
67
  :host([data-render-mode="shadow"]) .slds-assistive-text {
77
68
  position: absolute !important;
@@ -85,13 +76,11 @@
85
76
  text-transform: none !important;
86
77
  white-space: nowrap !important;
87
78
  }
88
-
89
79
  /* TODO W-12674349: remove after text utils are added */
90
80
  :host([data-render-mode="shadow"]) .slds-text-heading_small {
91
81
  font-size: var(--slds-g-font-size-base);
92
82
  line-height: var(--slds-g-font-lineheight-2);
93
83
  }
94
-
95
84
  /* TODO W-12674349: remove after alert is added */
96
85
  :host([data-render-mode="shadow"]) .slds-notify__close {
97
86
  position: absolute;
@@ -100,4 +89,3 @@
100
89
  margin-inline-start: var(--slds-g-spacing-1);
101
90
  transform: translateY(-50%);
102
91
  }
103
- }