lightning-base-components 1.22.2-alpha → 1.22.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 (137) hide show
  1. package/README.md +2 -0
  2. package/metadata/raptor.json +31 -2
  3. package/package.json +12 -1
  4. package/scopedImports/@salesforce-label-LightningRecordPicker.actionIconAlternativeText.js +1 -0
  5. package/src/lightning/ariaObserver/ariaObserver.js +1 -1
  6. package/src/lightning/baseCombobox/baseCombobox.html +1 -1
  7. package/src/lightning/baseCombobox/baseCombobox.js +1 -0
  8. package/src/lightning/baseCombobox/input-text.slds.css +6 -7
  9. package/src/lightning/baseComboboxItem/card.lbc.native.css +1 -0
  10. package/src/lightning/baseComboboxItem/inline.lbc.native.css +1 -0
  11. package/src/lightning/buttonIcon/button-icon.slds.css +5 -5
  12. package/src/lightning/buttonIconStateful/button-icon.slds.css +5 -5
  13. package/src/lightning/buttonMenu/button-icon.slds.css +5 -5
  14. package/src/lightning/calendar/calendar.slds.css +10 -13
  15. package/src/lightning/checkboxGroup/checkboxGroup.js +21 -10
  16. package/src/lightning/checkboxGroup/checkboxGroup.js-meta.xml +3 -0
  17. package/src/lightning/colorPickerCustom/input-text.slds.css +6 -7
  18. package/src/lightning/combobox/form-element.slds.css +1 -1
  19. package/src/lightning/datatable/__docs__/datatable.md +10 -5
  20. package/src/lightning/datatable/columnResizer.js +3 -2
  21. package/src/lightning/datatable/columnWidthManager.js +16 -10
  22. package/src/lightning/datatable/datatable.js +101 -38
  23. package/src/lightning/datatable/infiniteLoading.js +8 -20
  24. package/src/lightning/datatable/inlineEdit.js +11 -6
  25. package/src/lightning/datatable/keyboard.js +58 -55
  26. package/src/lightning/datatable/resizeObserver.js +10 -5
  27. package/src/lightning/datatable/rows.js +1 -2
  28. package/src/lightning/datatable/rowsInlining.js +5 -4
  29. package/src/lightning/datatable/state.js +1 -2
  30. package/src/lightning/datatable/templates/div/div.html +150 -43
  31. package/src/lightning/datatable/templates/div/div.lbc.synthetic.css +8 -7
  32. package/src/lightning/datatable/templates/table/table.html +153 -46
  33. package/src/lightning/datatable/utils.js +10 -4
  34. package/src/lightning/datatable/virtualization.js +6 -4
  35. package/src/lightning/datatable/wrapText.js +16 -15
  36. package/src/lightning/datepicker/form-element.slds.css +1 -1
  37. package/src/lightning/datepicker/input-text.slds.css +6 -7
  38. package/src/lightning/datetimepicker/form-element.slds.css +1 -1
  39. package/src/lightning/datetimepicker/input-text.slds.css +6 -7
  40. package/src/lightning/dualListbox/form-element.slds.css +1 -1
  41. package/src/lightning/groupedCombobox/form-element.slds.css +1 -1
  42. package/src/lightning/groupedCombobox/input-text.slds.css +6 -7
  43. package/src/lightning/helptext/button-icon.slds.css +5 -5
  44. package/src/lightning/helptext/form-element.slds.css +1 -1
  45. package/src/lightning/input/form-element.slds.css +1 -1
  46. package/src/lightning/input/input.html +0 -1
  47. package/src/lightning/inputAddress/form-element.slds.css +1 -1
  48. package/src/lightning/inputAddress/input-text.slds.css +6 -7
  49. package/src/lightning/inputLocation/form-element.slds.css +1 -1
  50. package/src/lightning/inputLocation/input-text.slds.css +6 -7
  51. package/src/lightning/inputName/form-element.slds.css +1 -1
  52. package/src/lightning/inputName/input-text.slds.css +6 -7
  53. package/src/lightning/lookupAddress/form-element.slds.css +1 -1
  54. package/src/lightning/modal/__docs__/modal.md +2 -0
  55. package/src/lightning/modalBase/modalBase.html +2 -0
  56. package/src/lightning/modalBase/modalBase.js +30 -31
  57. package/src/lightning/modalBody/modalBody.html +1 -0
  58. package/src/lightning/modalBody/modalBody.js +3 -0
  59. package/src/lightning/modalFooter/modalFooter.html +5 -1
  60. package/src/lightning/modalFooter/modalFooter.js +3 -0
  61. package/src/lightning/modalHeader/modalHeader.html +4 -1
  62. package/src/lightning/modalHeader/modalHeader.js +3 -0
  63. package/src/lightning/overlayManager/overlayManager.js +1 -1
  64. package/src/lightning/positionLibrary/elementProxy.js +13 -6
  65. package/src/lightning/positionLibrary/util.js +20 -2
  66. package/src/lightning/primitiveCellActions/primitiveCellActions.html +1 -0
  67. package/src/lightning/primitiveCellActions/primitiveCellActions.js +3 -5
  68. package/src/lightning/primitiveCellButton/primitiveCellButton.html +2 -0
  69. package/src/lightning/primitiveCellButton/primitiveCellButton.js +3 -5
  70. package/src/lightning/primitiveCellCheckbox/checkbox.html +3 -2
  71. package/src/lightning/primitiveCellCheckbox/primitiveCellCheckbox.js +6 -3
  72. package/src/lightning/primitiveCellCheckbox/radio.html +5 -4
  73. package/src/lightning/primitiveCellEditableButton/primitiveCellEditableButton.html +1 -1
  74. package/src/lightning/primitiveCellEditableButton/primitiveCellEditableButton.js +1 -1
  75. package/src/lightning/primitiveCellFactory/bareCustomCell.html +1 -0
  76. package/src/lightning/primitiveCellFactory/cellWithStandardLayout.html +1 -0
  77. package/src/lightning/primitiveCellFactory/primitiveCellFactory.js +4 -6
  78. package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +1 -1
  79. package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.html +1 -0
  80. package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.js +1 -1
  81. package/src/lightning/primitiveDatatableIeditPanel/primitiveDatatableIeditPanel.html +3 -1
  82. package/src/lightning/primitiveDatatableIeditPanel/primitiveDatatableIeditPanel.js +3 -3
  83. package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.html +1 -0
  84. package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.js +1 -3
  85. package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.html +1 -0
  86. package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.js +1 -1
  87. package/src/lightning/primitiveDatatableTooltipBubble/primitiveDatatableTooltipBubble.html +1 -1
  88. package/src/lightning/primitiveDatatableTooltipBubble/primitiveDatatableTooltipBubble.js +1 -1
  89. package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.html +1 -0
  90. package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.js +2 -4
  91. package/src/lightning/primitiveHeaderFactory/nonsortableHeader.html +8 -3
  92. package/src/lightning/primitiveHeaderFactory/primitiveHeaderFactory.js +43 -13
  93. package/src/lightning/primitiveHeaderFactory/selectableHeader.html +3 -2
  94. package/src/lightning/primitiveHeaderFactory/sortableHeader.html +8 -3
  95. package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.html +1 -1
  96. package/src/lightning/primitiveIcon/primitiveIcon.css +0 -1
  97. package/src/lightning/primitiveInputCheckbox/form-element.slds.css +1 -1
  98. package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +1 -1
  99. package/src/lightning/primitiveInputColor/form-element.slds.css +1 -1
  100. package/src/lightning/primitiveInputColor/input-text.slds.css +6 -7
  101. package/src/lightning/primitiveInputFile/form-element.slds.css +1 -1
  102. package/src/lightning/primitiveInputSimple/form-element.slds.css +1 -1
  103. package/src/lightning/primitiveInputSimple/input-text.slds.css +6 -7
  104. package/src/lightning/primitiveInputToggle/form-element.slds.css +1 -1
  105. package/src/lightning/primitiveResizeHandler/primitiveResizeHandler.html +4 -2
  106. package/src/lightning/primitiveResizeHandler/primitiveResizeHandler.js +2 -2
  107. package/src/lightning/primitiveTreegridCellToggle/primitiveTreegridCellToggle.html +1 -1
  108. package/src/lightning/primitiveTreegridCellToggle/primitiveTreegridCellToggle.js +1 -1
  109. package/src/lightning/progressIndicator/progressIndicator.css +1 -1
  110. package/src/lightning/progressIndicator/progressIndicator.js +14 -6
  111. package/src/lightning/progressIndicator/progressIndicator.js-meta.xml +3 -0
  112. package/src/lightning/progressIndicator/progressIndicator.lbc.native.css +2 -0
  113. package/src/lightning/progressStep/__examples__/basic/basic.html +11 -0
  114. package/src/lightning/progressStep/__examples__/basic/basic.js +3 -0
  115. package/src/lightning/progressStep/__examples__/shaded/shaded.html +11 -0
  116. package/src/lightning/progressStep/__examples__/shaded/shaded.js +3 -0
  117. package/src/lightning/progressStep/base.html +2 -1
  118. package/src/lightning/progressStep/progressStep.css +1 -0
  119. package/src/lightning/progressStep/progressStep.js +40 -29
  120. package/src/lightning/progressStep/progressStep.js-meta.xml +3 -0
  121. package/src/lightning/progressStep/progressStep.lbc.native.css +3 -0
  122. package/src/lightning/prompt/form-element.slds.css +1 -1
  123. package/src/lightning/prompt/input-text.slds.css +6 -7
  124. package/src/lightning/radioGroup/form-element.slds.css +1 -1
  125. package/src/lightning/select/form-element.slds.css +1 -1
  126. package/src/lightning/select/select.slds.css +1 -1
  127. package/src/lightning/sldsCommon/sldsCommon.css +1 -1
  128. package/src/lightning/textarea/form-element.slds.css +1 -1
  129. package/src/lightning/tile/mediaTile.css +2 -0
  130. package/src/lightning/tile/standardTile.css +2 -1
  131. package/src/lightning/tile/tile.js +5 -2
  132. package/src/lightning/tile/tile.js-meta.xml +3 -0
  133. package/src/lightning/tile/tile.lbc.native.css +4 -0
  134. package/src/lightning/timepicker/form-element.slds.css +1 -1
  135. package/src/lightning/toast/button-icon.slds.css +5 -5
  136. package/src/lightning/primitiveIcon/primitiveIcon.lbc.synthetic.css +0 -9
  137. /package/src/lightning/tile/{standardTile.lbc.synthetic.css → tile.lbc.synthetic.css} +0 -0
@@ -46,7 +46,7 @@
46
46
  hyphens: auto;
47
47
  display: inline-block;
48
48
  color: var(--slds-g-color-on-surface-2);
49
- font-size: var(--slds-s-label-font-size, var(--slds-g-font-scale-neg-2));
49
+ font-size: var(--slds-g-font-scale-neg-3);
50
50
  padding-inline-end: var(--slds-g-spacing-2);
51
51
  padding-block-start: var(--slds-g-spacing-1);
52
52
  margin-block-end: calc(var(--slds-g-spacing-1) / 2);
@@ -7,7 +7,8 @@
7
7
  get initial focus when first tabbing into datatable
8
8
  JS in primitiveDatatableCell will focus input when appropriate
9
9
  -->
10
- <input type="range"
10
+ <input lwc:ref="input"
11
+ type="range"
11
12
  value={value}
12
13
  min={minWidth}
13
14
  max={maxWidth}
@@ -19,7 +20,8 @@
19
20
  onkeydown={handleKeydown}
20
21
  tabindex="-1"
21
22
  >
22
- <span class="slds-resizable__handle"
23
+ <span lwc:ref="resizeHandle"
24
+ class="slds-resizable__handle"
23
25
  data-is-last-col={isLastCol}
24
26
  onmousedown={onMouseDown}
25
27
  ontouchstart={onTouchStart}
@@ -33,7 +33,7 @@ export default class PrimitiveResizeHandler extends LightningElement {
33
33
  }
34
34
 
35
35
  get resizeElement() {
36
- return this.template.querySelector('.slds-resizable__handle');
36
+ return this.refs.resizeHandle;
37
37
  }
38
38
 
39
39
  /* Need this label only in Safari because VO doesn't announce the change when resized */
@@ -43,7 +43,7 @@ export default class PrimitiveResizeHandler extends LightningElement {
43
43
 
44
44
  @api
45
45
  focus() {
46
- const inputEle = this.template.querySelector('input');
46
+ const inputEle = this.refs.input;
47
47
 
48
48
  if (inputEle) {
49
49
  inputEle.focus();
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button type="button" class={computedButtonClass} tabindex={buttonTabIndex} title={buttonTitle} onclick={handleChevronClick}>
2
+ <button lwc:ref="button" type="button" class={computedButtonClass} tabindex={buttonTabIndex} title={buttonTitle} onclick={handleChevronClick}>
3
3
  <lightning-primitive-icon
4
4
  icon-name="utility:chevronright"
5
5
  variant="bare"
@@ -86,6 +86,6 @@ export default class PrivateTreeGridCellToggle extends LightningElement {
86
86
 
87
87
  @api
88
88
  focus() {
89
- this.template.querySelector('button').focus();
89
+ this.refs.button.focus();
90
90
  }
91
91
  }
@@ -1 +1 @@
1
- @import './progressIndicator.lbc.synthetic.css'
1
+ @import './progressIndicator.lbc.native.css';
@@ -1,5 +1,7 @@
1
- import { LightningElement, api, track } from 'lwc';
1
+ import { api, track } from 'lwc';
2
+ import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
2
3
  import { classSet, formatLabel } from 'lightning/utils';
4
+ import { isCSR } from 'lightning/utilsPrivate';
3
5
  import pathCurrentStage from '@salesforce/label/LightningProgressIndicator.pathCurrentStage';
4
6
  import {
5
7
  getStepIndex,
@@ -8,6 +10,7 @@ import {
8
10
  } from './utils';
9
11
  import base from './base.html';
10
12
  import path from './path.html';
13
+ import progressIndicatorStylesheets from './progressIndicator.css';
11
14
 
12
15
  const i18n = {
13
16
  currentStageLabel: pathCurrentStage,
@@ -27,7 +30,9 @@ const DOWN = 40;
27
30
  * Provides a visual indication on the progress of a particular process.
28
31
  * @slot default Placeholder for lightning-progress-step.
29
32
  */
30
- export default class LightningProgressIndicator extends LightningElement {
33
+ export default class LightningProgressIndicator extends LightningShadowBaseClass {
34
+ static stylesheets = [progressIndicatorStylesheets]; // stylesheets that apply to every rendered template
35
+
31
36
  /**
32
37
  * Changes the visual pattern of the indicator. Valid values are base and path.
33
38
  * The default is base.
@@ -95,10 +100,13 @@ export default class LightningProgressIndicator extends LightningElement {
95
100
  _currentStepLabel = '';
96
101
 
97
102
  connectedCallback() {
98
- this.addEventListener(
99
- 'privateregisterstep',
100
- this.handlePrivateRegisterStep.bind(this)
101
- );
103
+ super.connectedCallback();
104
+ if (isCSR) {
105
+ this.addEventListener(
106
+ 'privateregisterstep',
107
+ this.handlePrivateRegisterStep.bind(this)
108
+ );
109
+ }
102
110
  }
103
111
 
104
112
  renderedCallback() {
@@ -3,4 +3,7 @@
3
3
  <isExposed>true</isExposed>
4
4
  <minApiVersion>41.0</minApiVersion>
5
5
  <support>BETA</support>
6
+ <capabilities>
7
+ <capability>lightning__ServerRenderableWithHydration</capability>
8
+ </capabilities>
6
9
  </LightningComponentBundle>
@@ -0,0 +1,2 @@
1
+ @import 'lightning/sldsCommon';
2
+ @import './progress-indicator.slds.css';
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <p>
3
+ The steps are shown within a lightning-progress-indicator here.
4
+ </p>
5
+ <lightning-progress-indicator current-step="3" type="base" has-error="true" variant="base">
6
+ <lightning-progress-step label="Step 1" value="1"></lightning-progress-step>
7
+ <lightning-progress-step label="Step 2" value="2"></lightning-progress-step>
8
+ <lightning-progress-step label="Step 3" value="3"></lightning-progress-step>
9
+ <lightning-progress-step label="Step 4" value="4"></lightning-progress-step>
10
+ </lightning-progress-indicator>
11
+ </template>
@@ -0,0 +1,3 @@
1
+ import { LightningElement } from 'lwc';
2
+
3
+ export default class ProgressStepBasic extends LightningElement {}
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <p>
3
+ The shaded steps are shown within a lightning-progress-indicator here.
4
+ </p>
5
+ <lightning-progress-indicator current-step="3" type="base" has-error="true" variant="shade">
6
+ <lightning-progress-step label="Step 1" value="1"></lightning-progress-step>
7
+ <lightning-progress-step label="Step 2" value="2"></lightning-progress-step>
8
+ <lightning-progress-step label="Step 3" value="3"></lightning-progress-step>
9
+ <lightning-progress-step label="Step 4" value="4"></lightning-progress-step>
10
+ </lightning-progress-indicator>
11
+ </template>
@@ -0,0 +1,3 @@
1
+ import { LightningElement } from 'lwc';
2
+
3
+ export default class ProgressStepShaded extends LightningElement {}
@@ -9,7 +9,8 @@
9
9
  <template if:true={hasIcon}>
10
10
  <lightning-primitive-icon
11
11
  icon-name={baseIconName}
12
- svg-class="slds-icon slds-icon_xx-small"
12
+ svg-class="slds-icon"
13
+ size="xx-small"
13
14
  variant="bare"></lightning-primitive-icon>
14
15
  </template>
15
16
  <span if:true={assistiveText} class="slds-assistive-text">{assistiveText}</span>
@@ -0,0 +1 @@
1
+ @import './progressStep.lbc.native.css';
@@ -2,12 +2,14 @@ import labelCurrentStage from '@salesforce/label/LightningProgressIndicator.curr
2
2
  import labelStageComplete from '@salesforce/label/LightningProgressIndicator.stageComplete';
3
3
  import labelNotStartedStage from '@salesforce/label/LightningProgressIndicator.stageNotStarted';
4
4
  import labelErrorStage from '@salesforce/label/LightningProgressIndicator.errorStage';
5
- import { LightningElement, api, track } from 'lwc';
5
+ import { api, track } from 'lwc';
6
+ import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
6
7
  import { classSet, formatLabel } from 'lightning/utils';
7
- import { classListMutation } from 'lightning/utilsPrivate';
8
+ import { classListMutation, isCSR } from 'lightning/utilsPrivate';
8
9
  import { Tooltip, TooltipType, Direction } from 'lightning/tooltipLibrary';
9
10
  import path from './path.html';
10
11
  import base from './base.html';
12
+ import progressStepStylesheets from './progressStep.css';
11
13
 
12
14
  // Temporary workaround until we get real label support. New label entries must
13
15
  // also be added to the static `labels` prop inside the class.
@@ -28,7 +30,10 @@ const baseIconNameMap = {
28
30
  /**
29
31
  * Defines a step in the lightning-progress-indicator.
30
32
  */
31
- export default class LightningProgressStep extends LightningElement {
33
+ export default class LightningProgressStep extends LightningShadowBaseClass {
34
+ static stylesheets = [progressStepStylesheets]; // stylesheets that apply to every rendered template
35
+ static validationOptOut = ['class'];
36
+
32
37
  /**
33
38
  * Text string to reference the step of the progress indicator.
34
39
  * @type {string}
@@ -97,18 +102,22 @@ export default class LightningProgressStep extends LightningElement {
97
102
  }
98
103
 
99
104
  connectedCallback() {
100
- this.dispatchEvent(
101
- new CustomEvent('privateregisterstep', {
102
- bubbles: true,
103
- detail: {
104
- callback: this.updateInternal.bind(this),
105
- stepName: this.value,
106
- setDeRegistrationCallback: (deRegistrationCallback) => {
107
- this._deRegistrationCallback = deRegistrationCallback;
105
+ super.connectedCallback();
106
+ if (isCSR) {
107
+ this.dispatchEvent(
108
+ new CustomEvent('privateregisterstep', {
109
+ bubbles: true,
110
+ detail: {
111
+ callback: this.updateInternal.bind(this),
112
+ stepName: this.value,
113
+ setDeRegistrationCallback: (deRegistrationCallback) => {
114
+ this._deRegistrationCallback =
115
+ deRegistrationCallback;
116
+ },
108
117
  },
109
- },
110
- })
111
- );
118
+ })
119
+ );
120
+ }
112
121
  }
113
122
 
114
123
  disconnectedCallback() {
@@ -232,21 +241,23 @@ export default class LightningProgressStep extends LightningElement {
232
241
  } else if (this._privateLabel && this.state.type && !this.isPath) {
233
242
  // Note that because the tooltip target is a child element it may not be present in the
234
243
  // dom during initial rendering.
235
- this._tooltip = new Tooltip(this._privateLabel, {
236
- root: this,
237
- target: () => this.template.querySelector('div'),
238
- type: TooltipType.Toggle,
239
- align: {
240
- horizontal: Direction.Center,
241
- vertical: Direction.Bottom,
242
- },
243
- targetAlign: {
244
- horizontal: Direction.Center,
245
- vertical: Direction.Top,
246
- },
247
- disableAriaDescribedBy: true,
248
- });
249
- this._tooltip.initialize();
244
+ if (isCSR) {
245
+ this._tooltip = new Tooltip(this._privateLabel, {
246
+ root: this,
247
+ target: () => this.template.querySelector('div'),
248
+ type: TooltipType.Toggle,
249
+ align: {
250
+ horizontal: Direction.Center,
251
+ vertical: Direction.Bottom,
252
+ },
253
+ targetAlign: {
254
+ horizontal: Direction.Center,
255
+ vertical: Direction.Top,
256
+ },
257
+ disableAriaDescribedBy: true,
258
+ });
259
+ this._tooltip.initialize();
260
+ }
250
261
  }
251
262
  }
252
263
  }
@@ -3,4 +3,7 @@
3
3
  <isExposed>true</isExposed>
4
4
  <minApiVersion>41.0</minApiVersion>
5
5
  <support>BETA</support>
6
+ <capabilities>
7
+ <capability>lightning__ServerRenderableWithHydration</capability>
8
+ </capabilities>
6
9
  </LightningComponentBundle>
@@ -0,0 +1,3 @@
1
+ @import 'lightning/sldsCommon';
2
+ @import 'lightning/sldsUtilsVisibility';
3
+ @import './progress-step.slds.css';
@@ -46,7 +46,7 @@
46
46
  hyphens: auto;
47
47
  display: inline-block;
48
48
  color: var(--slds-g-color-on-surface-2);
49
- font-size: var(--slds-s-label-font-size, var(--slds-g-font-scale-neg-2));
49
+ font-size: var(--slds-g-font-scale-neg-3);
50
50
  padding-inline-end: var(--slds-g-spacing-2);
51
51
  padding-block-start: var(--slds-g-spacing-1);
52
52
  margin-block-end: calc(var(--slds-g-spacing-1) / 2);
@@ -246,7 +246,7 @@
246
246
  --sds-c-inputtext-text-color: var(--slds-c-inputtext-text-color);
247
247
  --sds-c-inputtext-font-size: var(
248
248
  --slds-c-inputtext-font-size,
249
- var(--slds-g-font-size-base)
249
+ var(--slds-g-font-scale-neg-2)
250
250
  );
251
251
  --sds-c-inputtext-text-color-placeholder: var(
252
252
  --slds-c-inputtext-text-color-placeholder,
@@ -264,7 +264,7 @@
264
264
 
265
265
  display: flex;
266
266
  flex-wrap: wrap;
267
- flex-direction: column;
267
+ align-items: center;
268
268
  }
269
269
  /**
270
270
  * Input Container
@@ -371,10 +371,6 @@
371
371
  --sds-c-inputtext-color-border: var(--slds-g-color-border-disabled-1);
372
372
  --sds-c-inputtext-text-color: var(--slds-g-color-on-disabled-2);
373
373
  }
374
- :host([data-render-mode="shadow"][disabled]) [part='input-text'] {
375
- --sds-c-inputtext-text-color-placeholder:
376
- var(--slds-g-color-on-disabled-2);
377
- }
378
374
  /**
379
375
  * Label
380
376
  *
@@ -388,7 +384,10 @@
388
384
  --slds-c-inputtext-label-color,
389
385
  var(--slds-g-color-on-surface-2)
390
386
  );
391
- font-size: var(--slds-s-label-font-size, var(--slds-g-font-scale-neg-2));
387
+ font-size: var(
388
+ --slds-c-inputtext-label-font-size,
389
+ var(--slds-g-font-scale-neg-3)
390
+ );
392
391
  margin-block-end: var(--slds-g-sizing-1);
393
392
 
394
393
  /* We inline flex to control the spacing between elements and not have to rely on whitespace characters */
@@ -46,7 +46,7 @@
46
46
  hyphens: auto;
47
47
  display: inline-block;
48
48
  color: var(--slds-g-color-on-surface-2);
49
- font-size: var(--slds-s-label-font-size, var(--slds-g-font-scale-neg-2));
49
+ font-size: var(--slds-g-font-scale-neg-3);
50
50
  padding-inline-end: var(--slds-g-spacing-2);
51
51
  padding-block-start: var(--slds-g-spacing-1);
52
52
  margin-block-end: calc(var(--slds-g-spacing-1) / 2);
@@ -46,7 +46,7 @@
46
46
  hyphens: auto;
47
47
  display: inline-block;
48
48
  color: var(--slds-g-color-on-surface-2);
49
- font-size: var(--slds-s-label-font-size, var(--slds-g-font-scale-neg-2));
49
+ font-size: var(--slds-g-font-scale-neg-3);
50
50
  padding-inline-end: var(--slds-g-spacing-2);
51
51
  padding-block-start: var(--slds-g-spacing-1);
52
52
  margin-block-end: calc(var(--slds-g-spacing-1) / 2);
@@ -7,7 +7,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
7
7
  :host([data-render-mode="shadow"]) [part='select'] {
8
8
  height: calc(var(--slds-c-select-input-sizing-height, 1.875rem) + (var(--slds-g-sizing-border-1) * 2));
9
9
  width: 100%;
10
- border: var(--slds-g-sizing-border-1) solid var(--slds-c-select-color-border, var(--slds-s-input-color-border, var(--slds-g-color-border-1)));
10
+ border: var(--slds-g-sizing-border-1) solid var(--slds-c-select-color-border, var(--slds-g-color-border-1));
11
11
  border-radius: var(--slds-c-select-radius-border, var(--slds-g-radius-border-2));
12
12
  background-color: var(--slds-c-select-color-background,
13
13
  var(--slds-g-color-surface-container-1));
@@ -30,7 +30,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
30
30
  }
31
31
 
32
32
  :host([data-render-mode='shadow']) a {
33
- color: var(--slds-g-link-color, var(--slds-g-color-brand-base-50, #0176d3));
33
+ color: var(--slds-s-link-color);
34
34
  text-decoration: var(--_slds-g-font-decoration, none);
35
35
  transition: color 0.1s linear;
36
36
  background-color: transparent;
@@ -46,7 +46,7 @@
46
46
  hyphens: auto;
47
47
  display: inline-block;
48
48
  color: var(--slds-g-color-on-surface-2);
49
- font-size: var(--slds-s-label-font-size, var(--slds-g-font-scale-neg-2));
49
+ font-size: var(--slds-g-font-scale-neg-3);
50
50
  padding-inline-end: var(--slds-g-spacing-2);
51
51
  padding-block-start: var(--slds-g-spacing-1);
52
52
  margin-block-end: calc(var(--slds-g-spacing-1) / 2);
@@ -0,0 +1,2 @@
1
+ @import './tile.lbc.synthetic.css';
2
+ @import './tile.lbc.native.css';
@@ -1 +1,2 @@
1
- @import './standardTile.lbc.synthetic.css';
1
+ @import './tile.lbc.synthetic.css';
2
+ @import './tile.lbc.native.css';
@@ -4,7 +4,8 @@ import {
4
4
  classListMutation,
5
5
  normalizeString,
6
6
  } from 'lightning/utilsPrivate';
7
- import { LightningElement, api, track } from 'lwc';
7
+ import { api, track } from 'lwc';
8
+ import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
8
9
  import mediaTile from './mediaTile.html';
9
10
  import standardTile from './standardTile.html';
10
11
 
@@ -18,7 +19,8 @@ const i18n = {
18
19
  * A grouping of related information associated with a record.
19
20
  * @slot default Placeholder for your content that appears below the heading.
20
21
  */
21
- export default class LightningTile extends LightningElement {
22
+ export default class LightningTile extends LightningShadowBaseClass {
23
+ static validationOptOut = ['class'];
22
24
  /**
23
25
  * The text label that displays in the tile as the heading and hover text.
24
26
  * @type {string}
@@ -90,6 +92,7 @@ export default class LightningTile extends LightningElement {
90
92
  }
91
93
 
92
94
  connectedCallback() {
95
+ super.connectedCallback();
93
96
  this._connected = true;
94
97
  this.classList.add('slds-tile');
95
98
  this.setClassesAndTemplate();
@@ -3,4 +3,7 @@
3
3
  <isExposed>true</isExposed>
4
4
  <minApiVersion>0.0</minApiVersion>
5
5
  <support>GA</support>
6
+ <capabilities>
7
+ <capability>lightning__ServerRenderableWithHydration</capability>
8
+ </capabilities>
6
9
  </LightningComponentBundle>
@@ -0,0 +1,4 @@
1
+ @import 'lightning/sldsCommon';
2
+ @import 'lightning/sldsUtilsGrid';
3
+ @import 'lightning/sldsMediaObject';
4
+ @import './tile.slds.css';
@@ -46,7 +46,7 @@
46
46
  hyphens: auto;
47
47
  display: inline-block;
48
48
  color: var(--slds-g-color-on-surface-2);
49
- font-size: var(--slds-s-label-font-size, var(--slds-g-font-scale-neg-2));
49
+ font-size: var(--slds-g-font-scale-neg-3);
50
50
  padding-inline-end: var(--slds-g-spacing-2);
51
51
  padding-block-start: var(--slds-g-spacing-1);
52
52
  margin-block-end: calc(var(--slds-g-spacing-1) / 2);
@@ -553,19 +553,19 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
553
553
  --sds-c-button-color-border-disabled: var(--slds-g-color-border-disabled-1);
554
554
  }
555
555
  /* slds-icon interaction states */
556
- :host([data-render-mode="shadow"]) [part~='button-icon']:hover {
556
+ :host([data-render-mode="shadow"]) [part~='button-icon']:not(.slds-is-selected):hover {
557
557
  --slds-c-icon-color-foreground: var(
558
- --slds-c-buttonicon-color-foreground-hover,
558
+ --slds-c-buttonicon-color-foreground-hover,
559
559
  var(--slds-g-color-accent-3)
560
560
  );
561
561
  }
562
- :host([data-render-mode="shadow"]) [part~='button-icon']:focus {
562
+ :host([data-render-mode="shadow"]) [part~='button-icon']:not(.slds-is-selected):focus {
563
563
  --slds-c-icon-color-foreground: var(
564
564
  --slds-c-buttonicon-color-foreground-focus,
565
565
  var(--slds-g-color-accent-3)
566
566
  );
567
567
  }
568
- :host([data-render-mode="shadow"]) [part~='button-icon']:active {
568
+ :host([data-render-mode="shadow"]) [part~='button-icon']:not(.slds-is-selected):active {
569
569
  --slds-c-icon-color-foreground: var(
570
570
  --slds-c-buttonicon-color-foreground-active,
571
571
  var(--slds-g-color-accent-3)
@@ -643,7 +643,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
643
643
 
644
644
  /* Icon */
645
645
  --slds-c-buttonicon-color-foreground: var(--slds-g-color-neutral-base-100);
646
- --slds-c-buttonicon-color-foreground-hover: color-mix(in oklab, var(--slds-g-color-on-surface-inverse-1), transparent 25%);
646
+ --slds-c-buttonicon-color-foreground-hover: var(--slds-g-color-neutral-base-95);
647
647
  --slds-c-buttonicon-color-foreground-focus: var(--slds-g-color-neutral-base-95);
648
648
  --slds-c-buttonicon-color-foreground-active: var(--slds-g-color-neutral-base-90);
649
649
 
@@ -1,9 +0,0 @@
1
- /*
2
- "Temporary" fix for Edge SVG quirk. We can remove this when it is fixed either
3
- at the SLDS level or at the browser level.
4
- https://git.soma.salesforce.com/aura/lightning-global/issues/1349
5
- Also prevents IE11 from gacking during some interactions
6
- */
7
- _:-ms-lang(x), svg {
8
- pointer-events: none;
9
- }