lightning-base-components 1.26.4-alpha → 1.27.2-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.
- package/README.md +91 -91
- package/{scopedImports/@salesforce-gate-accordionCloseSingleSection.bc.ltng.js → external/flagStub.js} +1 -1
- package/{scopedImports/@salesforce-gate-bc.256.enableInputSearchCommitEvent.js → external/gateStub.js} +1 -1
- package/package.json +89 -77
- package/scopedImports/@salesforce-internal-core.appVersion.js +1 -1
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.modalTitle.js +1 -1
- package/scopedImports/{@salesforce-gate-assertContext.bc.ltng.js → @salesforce-label-LightningPrimitiveColumnSorter.deleteButtonAltText.js} +1 -1
- package/src/lightning/accordion/__docs__/accordion.md +2 -2
- package/src/lightning/accordion/accordion-section.slds.css +100 -107
- package/src/lightning/accordion/accordion.lbc.native.css +0 -1
- package/src/lightning/accordion/accordion.lbc.synthetic.css +0 -1
- package/src/lightning/accordion/accordion.slds.css +12 -12
- package/src/lightning/accordionSection/__docs__/accordionSection.md +1 -0
- package/src/lightning/accordionSection/accordion-section.slds.css +100 -107
- package/src/lightning/accordionSection/accordionSection.lbc.native.css +0 -2
- package/src/lightning/accordionSection/accordionSection.lbc.synthetic.css +1 -2
- package/src/lightning/accordionSection/button.slds.css +32 -17
- package/src/lightning/alert/__docs__/alert.md +13 -13
- package/src/lightning/alert/alert.css +1 -1
- package/src/lightning/ariaObserver/__docs__/ariaObserver.md +16 -10
- package/src/lightning/avatar/__docs__/avatar.md +2 -2
- package/src/lightning/avatar/avatar.css +1 -1
- package/src/lightning/avatar/avatar.slds.css +96 -97
- package/src/lightning/badge/__docs__/badge.md +3 -3
- package/src/lightning/badge/badge.css +1 -1
- package/src/lightning/badge/badge.slds.css +71 -56
- package/src/lightning/barcodeScanner/__docs__/barcodeScanner.md +9 -9
- package/src/lightning/baseCombobox/base-combobox.slds.css +171 -170
- package/src/lightning/baseCombobox/baseCombobox.lbc.synthetic.css +0 -1
- package/src/lightning/baseCombobox/dropdown.slds.css +405 -388
- package/src/lightning/baseCombobox/input-text.slds.css +172 -190
- package/src/lightning/baseCombobox/listbox.slds.css +181 -175
- package/src/lightning/baseCombobox/spinner.slds.css +327 -326
- package/src/lightning/baseComboboxItem/listbox.slds.css +181 -175
- package/src/lightning/breadcrumb/__docs__/breadcrumb.md +2 -2
- package/src/lightning/breadcrumb/breadcrumb.slds.css +13 -14
- package/src/lightning/breadcrumbs/__docs__/breadcrumbs.md +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.css +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.lbc.native.css +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +27 -28
- package/src/lightning/button/__docs__/button.md +16 -16
- package/src/lightning/button/__examples__/accesskey/accesskey.css +5 -3
- package/src/lightning/button/__examples__/inverse/inverse.css +2 -2
- package/src/lightning/button/button.slds.css +32 -17
- package/src/lightning/buttonGroup/__docs__/buttonGroup.md +5 -5
- package/src/lightning/buttonGroup/button-group.slds.css +1 -2
- package/src/lightning/buttonGroup/buttonGroup.lbc.native.css +1 -1
- package/src/lightning/buttonIcon/__docs__/buttonIcon.md +20 -20
- package/src/lightning/buttonIcon/button-icon.slds.css +50 -31
- package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +12 -12
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +33 -40
- package/src/lightning/buttonIconStateful/button-icon.slds.css +50 -31
- package/src/lightning/buttonIconStateful/button.slds.css +32 -17
- package/src/lightning/buttonIconStateful/buttonIconStateful.lbc.synthetic.css +5 -1
- package/src/lightning/buttonMenu/__docs__/buttonMenu.md +22 -22
- package/src/lightning/buttonMenu/button-icon.slds.css +50 -31
- package/src/lightning/buttonMenu/button-menu.slds.css +113 -115
- package/src/lightning/buttonMenu/button.slds.css +32 -17
- package/src/lightning/buttonMenu/buttonMenu.css +4 -1
- package/src/lightning/buttonMenu/buttonMenu.lbc.synthetic.css +1 -3
- package/src/lightning/buttonMenu/dropdown.slds.css +405 -388
- package/src/lightning/buttonStateful/__docs__/buttonStateful.md +9 -9
- package/src/lightning/buttonStateful/button-stateful.slds.css +98 -102
- package/src/lightning/buttonStateful/button.slds.css +32 -17
- package/src/lightning/calendar/calendar.slds.css +188 -191
- package/src/lightning/calendar/dropdown.slds.css +405 -388
- package/src/lightning/card/__docs__/card.md +1 -1
- package/src/lightning/card/__examples__/custom/custom.css +2 -2
- package/src/lightning/card/card.slds.css +137 -175
- package/src/lightning/carousel/button-menu.slds.css +113 -115
- package/src/lightning/carousel/button.slds.css +32 -17
- package/src/lightning/carousel/carousel.js +11 -18
- package/src/lightning/carousel/carousel.slds.css +15 -6
- package/src/lightning/carouselImage/carouselImage.lbc.native.css +0 -1
- package/src/lightning/checkboxGroup/__docs__/checkboxGroup.md +7 -7
- package/src/lightning/checkboxGroup/checkbox-group.slds.css +94 -60
- package/src/lightning/checkboxGroup/form-element.slds.css +4 -4
- package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +212 -211
- package/src/lightning/colorPickerCustom/input-text.slds.css +172 -190
- package/src/lightning/colorPickerPanel/color-picker-panel.slds.css +22 -23
- package/src/lightning/colorPickerPanel/colorPickerPanel.lbc.synthetic.css +4 -2
- package/src/lightning/colorPickerPanel/popover.slds.css +127 -128
- package/src/lightning/combobox/__docs__/combobox.md +4 -5
- package/src/lightning/combobox/combobox.css +1 -2
- package/src/lightning/combobox/combobox.lbc.synthetic.css +17 -4
- package/src/lightning/combobox/combobox.slds.css +9 -10
- package/src/lightning/combobox/form-element.slds.css +4 -4
- package/src/lightning/confirm/__docs__/confirm.md +14 -14
- package/src/lightning/context/README.md +13 -13
- package/src/lightning/datatable/README.md +2 -3
- package/src/lightning/datatable/__docs__/datatable.md +82 -77
- package/src/lightning/datatable/__docs__/multi-column-sorting.md +4 -4
- package/src/lightning/datatable/__requirements__/column_widths_requirements.md +68 -68
- package/src/lightning/datatable/__requirements__/requirements.md +1 -1
- package/src/lightning/datatable/button-icon.slds.css +50 -31
- package/src/lightning/datatable/columns.js +2 -2
- package/src/lightning/datatable/datagrid.slds.css +341 -267
- package/src/lightning/datatable/datatable.js +6 -1
- package/src/lightning/datatable/icon.slds.css +6 -2
- package/src/lightning/datatable/input-checkbox.slds.css +130 -124
- package/src/lightning/datatable/primitive-cell-factory.slds.css +0 -1
- package/src/lightning/datatable/rows.js +1 -3
- package/src/lightning/datatable/templates/div/div.css +33 -15
- package/src/lightning/datatable/templates/table/table.css +2 -1
- package/src/lightning/datepicker/form-element.slds.css +4 -4
- package/src/lightning/datepicker/input-text.slds.css +172 -190
- package/src/lightning/datetimepicker/form-element.slds.css +4 -4
- package/src/lightning/datetimepicker/input-text.slds.css +172 -190
- package/src/lightning/dialog/README.md +7 -6
- package/src/lightning/dialog/__requirements__/requirements.md +18 -18
- package/src/lightning/dualListbox/__docs__/dualListbox.md +24 -24
- package/src/lightning/dualListbox/dual-listbox.slds.css +192 -192
- package/src/lightning/dualListbox/dualListbox.lbc.native.css +1 -1
- package/src/lightning/dualListbox/form-element.slds.css +4 -4
- package/src/lightning/dualListbox/listbox.slds.css +181 -175
- package/src/lightning/dynamicIcon/__docs__/dynamicIcon.md +6 -6
- package/src/lightning/dynamicIcon/dynamic-icon-ellie.slds.css +0 -2
- package/src/lightning/dynamicIcon/dynamic-icon-eq.slds.css +0 -2
- package/src/lightning/dynamicIcon/dynamic-icon-score.slds.css +3 -5
- package/src/lightning/dynamicIcon/dynamic-icon-strength.slds.css +109 -108
- package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +97 -99
- package/src/lightning/dynamicIcon/dynamic-icon-waffle.slds.css +0 -2
- package/src/lightning/features/gates/imports.js +6 -1
- package/src/lightning/focusTrap/__requirements__/requirements.md +26 -26
- package/src/lightning/formattedAddress/__docs__/formattedAddress.md +0 -1
- package/src/lightning/formattedAddress/formattedAddress.css +1 -1
- package/src/lightning/formattedAddress/formattedAddress.lbc.native.css +1 -1
- package/src/lightning/formattedDateTime/__docs__/formattedDateTime.md +11 -11
- package/src/lightning/formattedEmail/__docs__/formattedEmail.md +2 -2
- package/src/lightning/formattedEmail/formattedEmail.lbc.native.css +1 -2
- package/src/lightning/formattedPhone/__docs__/formattedPhone.md +2 -2
- package/src/lightning/formattedRichText/__docs__/formattedRichText.md +14 -14
- package/src/lightning/formattedRichText/formattedRichText.lbc.native.css +1 -1
- package/src/lightning/formattedRichTextRenderer/formattedRichTextRenderer.lbc.native.css +1 -1
- package/src/lightning/formattedText/formattedText.lbc.native.css +1 -1
- package/src/lightning/formattedTime/__docs__/formattedTime.md +3 -3
- package/src/lightning/formattedUrl/__docs__/formattedUrl.md +11 -11
- package/src/lightning/groupedCombobox/README.md +33 -34
- package/src/lightning/groupedCombobox/form-element.slds.css +4 -4
- package/src/lightning/groupedCombobox/grouped-combobox.slds.css +10 -10
- package/src/lightning/groupedCombobox/groupedCombobox.lbc.native.css +0 -1
- package/src/lightning/groupedCombobox/input-text.slds.css +172 -190
- package/src/lightning/helptext/__docs__/helptext.md +5 -5
- package/src/lightning/helptext/button-icon.slds.css +50 -31
- package/src/lightning/helptext/form-element.slds.css +4 -4
- package/src/lightning/helptext/help-text.slds.css +3 -4
- package/src/lightning/helptext/helptext.css +1 -1
- package/src/lightning/icon/__docs__/icon.md +10 -10
- package/src/lightning/icon/__examples__/variants/variants.css +3 -3
- package/src/lightning/icon/icon.slds.css +6 -2
- package/src/lightning/input/__docs__/input.md +47 -49
- package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.css +6 -6
- package/src/lightning/input/__requirements__/requirements.md +49 -49
- package/src/lightning/input/form-element.slds.css +4 -4
- package/src/lightning/input/input.lbc.synthetic.css +1 -1
- package/src/lightning/inputAddress/__docs__/inputAddress.md +26 -27
- package/src/lightning/inputAddress/form-element.slds.css +4 -4
- package/src/lightning/inputAddress/input-address.slds.css +6 -6
- package/src/lightning/inputAddress/input-text.slds.css +172 -190
- package/src/lightning/inputLocation/form-element.slds.css +4 -4
- package/src/lightning/inputLocation/input-location.slds.css +6 -6
- package/src/lightning/inputLocation/input-text.slds.css +172 -190
- package/src/lightning/inputName/__docs__/inputName.md +7 -7
- package/src/lightning/inputName/form-element.slds.css +4 -4
- package/src/lightning/inputName/input-text.slds.css +172 -190
- package/src/lightning/inputUtils/validity.js +37 -18
- package/src/lightning/interactiveDialogBase/button.slds.css +32 -17
- package/src/lightning/interactiveDialogBase/interactive-dialog-base.slds.css +9 -18
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.lbc.native.css +1 -1
- package/src/lightning/interactiveDialogBase/modal-base.slds.css +198 -194
- package/src/lightning/interactiveDialogBase/modal-body.slds.css +33 -34
- package/src/lightning/interactiveDialogBase/modal-footer.slds.css +62 -64
- package/src/lightning/interactiveDialogBase/modal-header.slds.css +47 -48
- package/src/lightning/layout/__docs__/layout.md +13 -13
- package/src/lightning/layout/__examples__/pullToBoundary/pullToBoundary.css +1 -1
- package/src/lightning/layout/__examples__/simple/simple.css +2 -2
- package/src/lightning/layout/__examples__/verticalAlignCenter/verticalAlignCenter.css +3 -3
- package/src/lightning/layout/__examples__/verticalAlignStretch/verticalAlignStretch.css +3 -3
- package/src/lightning/layout/layout.css +1 -1
- package/src/lightning/layout/layout.lbc.native.css +1 -1
- package/src/lightning/layout/layout.lbc.synthetic.css +1 -2
- package/src/lightning/layoutItem/layoutItem.css +1 -1
- package/src/lightning/lookupAddress/form-element.slds.css +4 -4
- package/src/lightning/lookupAddress/listbox.slds.css +181 -175
- package/src/lightning/lookupAddress/lookup-address.slds.css +4 -4
- package/src/lightning/lookupAddress/lookupAddress.css +0 -1
- package/src/lightning/lookupAddress/lookupAddress.lbc.native.css +0 -1
- package/src/lightning/mediaUtils/__docs__/mediaUtils.md +20 -17
- package/src/lightning/menuDivider/menu-divider.slds.css +8 -8
- package/src/lightning/menuItem/menu-item.slds.css +94 -82
- package/src/lightning/menuItem/menuItem.lbc.synthetic.css +1 -1
- package/src/lightning/menuSubheader/menu-subheader.slds.css +13 -13
- package/src/lightning/modal/__docs__/migration.md +95 -91
- package/src/lightning/modal/__docs__/modal.md +28 -22
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +14 -21
- package/src/lightning/modalBase/modal-base.slds.css +198 -194
- package/src/lightning/modalBase/modalBase.lbc.synthetic.css +2 -2
- package/src/lightning/modalBody/__docs__/modalBody.md +0 -1
- package/src/lightning/modalBody/modal-body.slds.css +33 -34
- package/src/lightning/modalFooter/__docs__/modalFooter.md +1 -2
- package/src/lightning/modalFooter/modal-footer.slds.css +62 -64
- package/src/lightning/modalHeader/__docs__/modalHeader.md +1 -0
- package/src/lightning/modalHeader/modal-header.slds.css +47 -48
- package/src/lightning/modalHeader/modalHeader.css +2 -1
- package/src/lightning/multiColumnSortingModal/multiColumnSortingModal.css +2 -3
- package/src/lightning/navigation/__docs__/navigation.md +2 -3
- package/src/lightning/overlay/__docs__/overlay.md +3 -3
- package/src/lightning/overlay/__examples__/basic/basic.css +2 -2
- package/src/lightning/picklist/README.md +9 -9
- package/src/lightning/pill/__docs__/pill.md +3 -3
- package/src/lightning/pill/avatar.slds.css +96 -97
- package/src/lightning/pill/link.css +1 -1
- package/src/lightning/pill/pill.slds.css +154 -153
- package/src/lightning/pill/plain.css +1 -1
- package/src/lightning/pill/plainLink.css +1 -1
- package/src/lightning/pillContainer/__docs__/pillContainer.md +16 -15
- package/src/lightning/pillContainer/barePillContainer.lbc.native.css +1 -1
- package/src/lightning/pillContainer/button.slds.css +32 -17
- package/src/lightning/pillContainer/listbox.slds.css +181 -175
- package/src/lightning/pillContainer/pill-container.slds.css +34 -34
- package/src/lightning/pillContainer/pill.slds.css +154 -153
- package/src/lightning/pillContainer/standardPillContainer.css +1 -1
- package/src/lightning/popup/README.md +3 -3
- package/src/lightning/popup/__requirements__/requirements.md +25 -25
- package/src/lightning/popup/popover.slds.css +127 -128
- package/src/lightning/primitiveBubble/tooltip.slds.css +105 -99
- package/src/lightning/primitiveButton/primitiveButton.js +0 -21
- package/src/lightning/primitiveCellButton/primitiveCellButton.js +6 -1
- package/src/lightning/primitiveCellCheckbox/checkbox.css +0 -1
- package/src/lightning/primitiveCellCheckbox/checkbox.lbc.native.css +1 -1
- package/src/lightning/primitiveCellCheckbox/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveCellCheckbox/input-radio-group.slds.css +6 -5
- package/src/lightning/primitiveCellCheckbox/primitiveCellCheckbox.js +13 -8
- package/src/lightning/primitiveCellCheckbox/radio.lbc.native.css +1 -1
- package/src/lightning/primitiveCellFactory/button-icon.slds.css +50 -31
- package/src/lightning/primitiveCellFactory/primitive-cell-factory.slds.css +0 -1
- package/src/lightning/primitiveCellFactory/primitiveCellFactory.js +7 -11
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +69 -70
- package/src/lightning/primitiveColumnSorter/form-element.slds.css +4 -4
- package/src/lightning/primitiveColumnSorter/input-radio-group.slds.css +6 -5
- package/src/lightning/primitiveColumnSorter/primitive-column-sorter.slds.css +0 -1
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.css +13 -7
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.html +1 -1
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.js +2 -0
- package/src/lightning/primitiveCoordinateItem/__examples__/basic/basic.js +1 -2
- package/src/lightning/primitiveCoordinateItem/button.slds.css +32 -17
- package/src/lightning/primitiveCoordinateItem/coordinate-item.slds.css +2 -1
- package/src/lightning/primitiveCoordinateItem/primitiveCoordinateItem.css +1 -1
- package/src/lightning/primitiveCustomCell/primitiveCustomCell.js +8 -7
- package/src/lightning/primitiveDatatableCell/primitiveDatatableCell.js +4 -2
- package/src/lightning/primitiveDatatableIeditPanel/popover.slds.css +127 -128
- package/src/lightning/primitiveDatatableStatusBar/button.slds.css +32 -17
- package/src/lightning/primitiveDatatableStatusBar/form-footer.slds.css +32 -32
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.css +1 -1
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.js +3 -1
- package/src/lightning/primitiveDatatableTooltip/button-icon.slds.css +50 -31
- package/src/lightning/primitiveDatatableTooltip/button.slds.css +32 -17
- package/src/lightning/primitiveDatatableTooltip/form-footer.slds.css +32 -32
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.css +1 -1
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.js +5 -6
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.lbc.native.css +1 -1
- package/src/lightning/primitiveDatatableTooltipBubble/popover.slds.css +127 -128
- package/src/lightning/primitiveDatatableTooltipBubble/primitive-datatable-tooltip-bubble.slds.css +9 -7
- package/src/lightning/primitiveDatatableTooltipBubble/primitiveDatatableTooltipBubble.css +1 -1
- package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.lbc.native.css +1 -1
- package/src/lightning/primitiveHeaderFactory/form-element.slds.css +4 -4
- package/src/lightning/primitiveHeaderFactory/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveHeaderFactory/primitive-header-factory.slds.css +9 -4
- package/src/lightning/primitiveHeaderFactory/selectableHeader.css +1 -1
- package/src/lightning/primitiveHeaderFactory/selectableHeader.lbc.native.css +1 -1
- package/src/lightning/primitiveHeaderFactory/sortableHeader.lbc.synthetic.css +9 -3
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.lbc.native.css +0 -1
- package/src/lightning/primitiveIcon/icon.slds.css +6 -2
- package/src/lightning/primitiveIcon/primitiveIcon.js +10 -2
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +90 -79
- package/src/lightning/primitiveInputColor/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputColor/input-color.slds.css +27 -28
- package/src/lightning/primitiveInputColor/input-text.slds.css +172 -190
- package/src/lightning/primitiveInputColor/primitiveInputColor.css +1 -1
- package/src/lightning/primitiveInputFile/button.slds.css +32 -17
- package/src/lightning/primitiveInputFile/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputFile/input-file.slds.css +58 -59
- package/src/lightning/primitiveInputSimple/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputSimple/input-text.slds.css +172 -190
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.lbc.synthetic.css +1 -1
- package/src/lightning/primitiveInputToggle/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +134 -118
- package/src/lightning/primitiveResizeHandler/primitive-resize-handler.slds.css +0 -1
- package/src/lightning/primitiveTreegridCellToggle/button-icon.slds.css +50 -31
- package/src/lightning/progressBar/progress-bar.slds.css +38 -39
- package/src/lightning/progressIndicator/__docs__/progressIndicator.md +2 -2
- package/src/lightning/progressIndicator/progress-indicator.slds.css +65 -65
- package/src/lightning/progressIndicator/progressIndicator.css +1 -1
- package/src/lightning/progressIndicator/progressIndicator.lbc.native.css +1 -1
- package/src/lightning/progressRing/progress-ring.slds.css +112 -112
- package/src/lightning/progressStep/progress-step.slds.css +223 -203
- package/src/lightning/prompt/__docs__/prompt.md +14 -14
- package/src/lightning/prompt/form-element.slds.css +4 -4
- package/src/lightning/prompt/input-text.slds.css +172 -190
- package/src/lightning/prompt/prompt.css +1 -1
- package/src/lightning/radioGroup/__docs__/radioGroup.md +6 -6
- package/src/lightning/radioGroup/form-element.slds.css +4 -4
- package/src/lightning/radioGroup/input-radio-group.slds.css +6 -5
- package/src/lightning/relativeDateTime/__docs__/relativeDateTime.md +10 -10
- package/src/lightning/select/__docs__/select.md +5 -5
- package/src/lightning/select/form-element.slds.css +4 -4
- package/src/lightning/select/select.css +1 -1
- package/src/lightning/select/select.html +6 -3
- package/src/lightning/select/select.lbc.native.css +2 -2
- package/src/lightning/select/select.slds.css +117 -115
- package/src/lightning/sldsCommon/sldsCommon.css +0 -1
- package/src/lightning/sldsFormElementUtils/sldsFormElementUtils.css +63 -29
- package/src/lightning/sldsMediaObject/sldsMediaObject.css +1 -3
- package/src/lightning/sldsUtilsAlignment/sldsUtilsAlignment.css +0 -1
- package/src/lightning/sldsUtilsBorders/sldsUtilsBorders.css +8 -5
- package/src/lightning/sldsUtilsBox/sldsUtilsBox.css +0 -1
- package/src/lightning/sldsUtilsFloats/sldsUtilsFloats.css +1 -2
- package/src/lightning/sldsUtilsGrid/sldsUtilsGrid.css +84 -85
- package/src/lightning/sldsUtilsHyphenation/sldsUtilsHyphenation.css +0 -1
- package/src/lightning/sldsUtilsLineClamp/sldsUtilsLineClamp.css +0 -1
- package/src/lightning/sldsUtilsMargin/sldsUtilsMargin.css +0 -1
- package/src/lightning/sldsUtilsPadding/sldsUtilsPadding.css +0 -1
- package/src/lightning/sldsUtilsPosition/sldsUtilsPosition.css +4 -5
- package/src/lightning/sldsUtilsSizing/sldsUtilsSizing.css +0 -1
- package/src/lightning/sldsUtilsThemes/sldsUtilsThemes.css +47 -23
- package/src/lightning/sldsUtilsTruncation/sldsUtilsTruncation.css +0 -1
- package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.css +0 -1
- package/src/lightning/slider/README.md +4 -4
- package/src/lightning/slider/form-element.slds.css +4 -4
- package/src/lightning/slider/slider.slds.css +106 -92
- package/src/lightning/spinner/__examples__/if/if.css +1 -1
- package/src/lightning/spinner/__examples__/sizes/sizes.css +1 -1
- package/src/lightning/spinner/spinner.slds.css +327 -326
- package/src/lightning/stackedTab/stacked-tab.slds.css +8 -7
- package/src/lightning/stackedTab/stackedTab.css +1 -1
- package/src/lightning/stackedTab/stackedTab.lbc.native.css +1 -1
- package/src/lightning/stackedTabset/stacked-tabset.slds.css +8 -8
- package/src/lightning/stackedTabset/stackedTabset.css +1 -1
- package/src/lightning/stackedTabset/stackedTabset.lbc.native.css +1 -1
- package/src/lightning/tab/tab.css +1 -1
- package/src/lightning/tab/tab.slds.css +44 -51
- package/src/lightning/tabBar/tab-bar.slds.css +405 -284
- package/src/lightning/tabset/__docs__/tabset.md +4 -4
- package/src/lightning/tabset/tabset.slds.css +12 -12
- package/src/lightning/textarea/__docs__/textarea.md +7 -7
- package/src/lightning/textarea/form-element.slds.css +4 -4
- package/src/lightning/textarea/textarea.js +22 -0
- package/src/lightning/textarea/textarea.lbc.synthetic.css +0 -1
- package/src/lightning/textarea/textarea.slds.css +124 -99
- package/src/lightning/tile/tile.slds.css +0 -1
- package/src/lightning/timepicker/form-element.slds.css +4 -4
- package/src/lightning/timepicker/timepicker.slds.css +13 -14
- package/src/lightning/toast/__docs__/toast.md +19 -19
- package/src/lightning/toast/button-icon.slds.css +50 -31
- package/src/lightning/toast/icon.slds.css +6 -2
- package/src/lightning/toast/toast.lbc.synthetic.css +12 -6
- package/src/lightning/toast/toast.slds.css +90 -90
- package/src/lightning/toastContainer/__docs__/toastContainer.md +4 -1
- package/src/lightning/toastContainer/toast.slds.css +90 -90
- package/src/lightning/toastContainer/toastContainer.lbc.synthetic.css +6 -6
- package/src/lightning/tree/tree.slds.css +1 -1
- package/src/lightning/treeGrid/__docs__/treeGrid.md +128 -64
- package/src/lightning/treeGrid/treeGrid.js +3 -1
- package/src/lightning/treeItem/calendar.slds.css +188 -191
- package/src/lightning/verticalNavigation/__docs__/verticalNavigation.md +5 -5
- package/src/lightning/verticalNavigation/verticalNavigation.css +1 -1
- package/src/lightning/verticalNavigationItemBadge/badge.slds.css +71 -56
- package/src/lightning/verticalNavigationOverflow/button.slds.css +32 -17
- package/src/lightning/verticalNavigationOverflow/vertical-navigation-section.slds.css +8 -8
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.css +1 -1
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.lbc.synthetic.css +1 -1
- package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +8 -8
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +1 -1
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.lbc.synthetic.css +1 -1
- package/scopedImports/@salesforce-gate-bc.256.enableReactiveCarousel.js +0 -6
- package/scopedImports/@salesforce-gate-colorIconsMenuItem.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-datatableIconSrc.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-formattedDateTimeDateStyle.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-groupedComboboxVariants.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-inputErrorIcon.ce.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-lookups.lookupMetadataLayoutServiceBased.js +0 -6
- package/scopedImports/@salesforce-gate-modalReduceMotionFix.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-overlaySldsScopeClass.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-primitiveThemeProviderDisabled.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-recordFormFieldCaching.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-regexCustomElementCheck.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-sanitizeURL.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-treeGridCustomTypes.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-treeGridStaticCustomTypes.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-treeItemEndIcon.bc.ltng.js +0 -6
|
@@ -97,11 +97,11 @@ You can use a combination of the `variant` and `class` attributes to customize t
|
|
|
97
97
|
|
|
98
98
|
Use the `variant` attribute to group your content and apply styling.
|
|
99
99
|
|
|
100
|
-
-
|
|
100
|
+
- `default` creates global tabs. When you select a tab, its content replaces the content of the previously selected tab. The default variant tab encapsulates the content underneath it without enclosing it visually.
|
|
101
101
|
|
|
102
|
-
-
|
|
102
|
+
- `scoped` creates a tab set that has a closed container with a defined border. Scoped tabs are useful for stacking several tabbed sections, where you want to change only a portion of the content displayed. When you click those tabs, the content at the bottom remains the same while the content at the top changes for the activity.
|
|
103
103
|
|
|
104
|
-
-
|
|
104
|
+
- `vertical` resembles the scoped variant in appearance, but the tabs are arranged vertically to the side instead of on the top.
|
|
105
105
|
|
|
106
106
|
You can nest scoped tabs within a global tab set, but don't nest global tabs. If additional hierarchy is necessary, consider using a `lightning-tree` component.
|
|
107
107
|
|
|
@@ -120,7 +120,7 @@ This example adds a gray background and padding to the content area on the first
|
|
|
120
120
|
</lightning-tabset>
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Tabs: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/tabs/) for documentation on component-specific hooks for this component.
|
|
123
|
+
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Tabs: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/tabs/) for documentation on component-specific hooks for this component.
|
|
124
124
|
|
|
125
125
|
For more information, see [Style Components Using Lightning Design System Styling Hooks](https://developer.salesforce.com/docs/platform/lwc/guide/create-components-css-custom-properties) in the Lightning Web Components Developer Guide.
|
|
126
126
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
:host([data-render-mode="shadow"]) .slds-vertical-tabs {
|
|
3
|
+
display: flex;
|
|
4
|
+
overflow: visible;
|
|
5
|
+
border: var(--slds-g-sizing-border-1) solid var(--slds-g-color-border-base-1, --slds-g-color-border-1);
|
|
6
|
+
border-radius: var(--slds-g-spacing-1);
|
|
7
|
+
}
|
|
8
|
+
:host([data-render-mode="shadow"]) .slds-tabs_default .slds-tabs_default__header {
|
|
9
|
+
font-weight: var(--sds-g-font-weight-bold, bold);
|
|
10
|
+
}
|
|
11
|
+
:host([data-render-mode="shadow"]) .slds-tabs_default .slds-tabs_default__header:not(.slds-assistive-text) {
|
|
12
|
+
font-size: var(--sds-g-font-scale-neg-2, 0.625rem);
|
|
13
|
+
}
|
|
@@ -54,9 +54,9 @@ length using the `maxlength` attribute or a minimum length using the
|
|
|
54
54
|
`minlength` attribute. An error message is automatically displayed in the
|
|
55
55
|
following cases:
|
|
56
56
|
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
57
|
+
- A required field is empty when `required` is present on the `lightning-textarea` tag.
|
|
58
|
+
- The input value contains fewer characters than that specified by the `minlength` attribute.
|
|
59
|
+
- The input value contains more characters than that specified by the `maxlength` attribute.
|
|
60
60
|
|
|
61
61
|
To check the validity states of an input, use the `validity` attribute, which
|
|
62
62
|
is based on the `ValidityState` object. You can access the validity states in
|
|
@@ -101,10 +101,10 @@ The `setRangeText()` method follows the API of the standard `HTMLInputElement.se
|
|
|
101
101
|
|
|
102
102
|
Valid values for selectMode are:
|
|
103
103
|
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
104
|
+
- `select` - Selects the inserted text. The text area must have focus when `setRangeText()` is called.
|
|
105
|
+
- `start` - Moves the selection to just before the inserted text.
|
|
106
|
+
- `end` - Moves the selection to just after the inserted text.
|
|
107
|
+
- `preserve` - Attempts to preserve the selection in effect before the insertion. This is the default.
|
|
108
108
|
|
|
109
109
|
To insert replacement text at the current cursor location, specify only the
|
|
110
110
|
replacement string and no other parameters. After the insertion, the cursor
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* sldsFormElementUtils.css and form-element.css have many similarities
|
|
5
4
|
* however, they are used for very different use cases, and this is why
|
|
@@ -255,7 +254,9 @@
|
|
|
255
254
|
display: block;
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
257
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
258
|
+
/* for rich text via lightning-quill */
|
|
259
|
+
|
|
259
260
|
/* @W-14518344 The following line still exists in SLDS-internal
|
|
260
261
|
but it was removed here because it was causing the input
|
|
261
262
|
component to not display it's bottom border
|
|
@@ -294,8 +295,7 @@
|
|
|
294
295
|
/* Force inner child input to not have padding and margin.
|
|
295
296
|
The parent (ex. lightning-input-field) will provide it instead */
|
|
296
297
|
|
|
297
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline']
|
|
298
|
-
{
|
|
298
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline'] {
|
|
299
299
|
padding: 0;
|
|
300
300
|
margin-block-end: 0;
|
|
301
301
|
}
|
|
@@ -539,6 +539,28 @@ export default class LightningTextarea extends LightningShadowBaseClass {
|
|
|
539
539
|
handleInput(event) {
|
|
540
540
|
event.stopPropagation();
|
|
541
541
|
|
|
542
|
+
const inputElement = event.target;
|
|
543
|
+
const inputLength = inputElement.value.length;
|
|
544
|
+
const warningId = 'char-limit-warning';
|
|
545
|
+
// Check if the warning element already exists
|
|
546
|
+
let warningEl = this.template.querySelector(`#${warningId}`);
|
|
547
|
+
if (inputLength >= this.maxLength) {
|
|
548
|
+
if (!warningEl) {
|
|
549
|
+
// Create and insert the warning element if it does not exist
|
|
550
|
+
warningEl = document.createElement('p');
|
|
551
|
+
warningEl.textContent = `Limit reached. You can only use ${this.maxLength} characters in this field.`;
|
|
552
|
+
warningEl.setAttribute('role', 'alert');
|
|
553
|
+
warningEl.id = warningId;
|
|
554
|
+
warningEl.classList.add('slds-assistive-text');
|
|
555
|
+
inputElement.after(warningEl); // Insert right after the input element
|
|
556
|
+
}
|
|
557
|
+
} else {
|
|
558
|
+
// Remove the warning element if it exists and limit is not reached
|
|
559
|
+
if (warningEl) {
|
|
560
|
+
warningEl.remove();
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
542
564
|
// If the current value is the same as it was prior to last update, don't fire the event.
|
|
543
565
|
// This allows us to fix an issue with IE11 which fires an 'input' event every time the placeholder
|
|
544
566
|
// is changed, since the value isn't affected we're effectively ignoring such events.
|
|
@@ -1,110 +1,135 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
:host([data-render-mode="shadow"]) {
|
|
3
|
+
/**
|
|
4
4
|
* Remap to SLDS blueprint hooks for parity
|
|
5
5
|
* https://www.lightningdesignsystem.com/components/modals/#Styling-Hooks-Overview
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
/* stylelint-disable */
|
|
9
|
+
--slds-c-textarea-spacing-blockstart: var(--slds-c-textarea-spacing-block-start);
|
|
10
|
+
--slds-c-textarea-spacing-blockend: var(--slds-c-textarea-spacing-block-end);
|
|
11
|
+
--slds-c-textarea-spacing-inlinestart: var(--slds-c-textarea-spacing-inline-start);
|
|
12
|
+
--slds-c-textarea-spacing-inlineend: var(--slds-c-textarea-spacing-inline-end);
|
|
13
|
+
/* stylelint-enable */
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
/* sldsCommon.css file comments indicate intentionally
|
|
17
17
|
not adding textarea selector to that file due to
|
|
18
18
|
style leaks in synthetic shadow mode.
|
|
19
19
|
adding here instead
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
22
|
+
:host([data-render-mode="shadow"]) textarea {
|
|
23
|
+
color: inherit;
|
|
24
|
+
font: inherit;
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([data-render-mode="shadow"]) .slds-textarea {
|
|
29
|
+
appearance: none;
|
|
30
|
+
min-height: var(--slds-c-textarea-sizing-min-height);
|
|
31
|
+
width: 100%;
|
|
32
|
+
padding-block-start: var(--slds-c-textarea-spacing-blockstart, var(--slds-g-spacing-2));
|
|
33
|
+
padding-inline-end: var(--slds-c-textarea-spacing-inlineend, var(--slds-g-spacing-3));
|
|
34
|
+
padding-block-end: var(--slds-c-textarea-spacing-blockend, var(--slds-g-spacing-2));
|
|
35
|
+
padding-inline-start: var(--slds-c-textarea-spacing-inlinestart, var(--slds-g-spacing-3));
|
|
36
|
+
background-color: var(
|
|
37
|
+
--slds-c-textarea-color-background,
|
|
38
|
+
var(--slds-g-color-neutral-base-100, var(--slds-g-color-neutral-base-100))
|
|
39
|
+
);
|
|
40
|
+
color: var(--slds-c-textarea-text-color);
|
|
41
|
+
border: var(--slds-g-sizing-border-1) solid
|
|
42
|
+
var(--slds-c-textarea-color-border, var(--slds-g-color-border-2, var(--slds-g-color-border-1)));
|
|
43
|
+
border-radius: var(--slds-c-textarea-radius-border, var(--slds-g-radius-border-2));
|
|
44
|
+
box-shadow: var(--slds-c-textarea-shadow);
|
|
45
|
+
resize: vertical;
|
|
46
|
+
transition:
|
|
47
|
+
border 0.1s linear,
|
|
48
|
+
background-color 0.1s linear;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([data-render-mode="shadow"]) .slds-textarea:required {
|
|
52
|
+
--slds-c-textarea-shadow: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([data-render-mode="shadow"]) .slds-textarea:focus,:host([data-render-mode="shadow"])
|
|
56
|
+
.slds-textarea:active {
|
|
57
|
+
outline: 0;
|
|
58
|
+
color: var(--slds-c-textarea-text-color-focus);
|
|
59
|
+
background-color: var(
|
|
60
|
+
--slds-c-textarea-color-background-focus,
|
|
61
|
+
var(--slds-g-color-neutral-base-100, var(--slds-g-color-neutral-base-100))
|
|
62
|
+
);
|
|
63
|
+
border-color: var(
|
|
64
|
+
--slds-c-textarea-color-border-focus,
|
|
65
|
+
var(--slds-g-color-brand-base-60, var(--slds-g-color-brand-base-60))
|
|
66
|
+
);
|
|
67
|
+
box-shadow: var(
|
|
68
|
+
--slds-c-textarea-shadow-focus,
|
|
69
|
+
0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-brand-base-50)
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host([data-render-mode="shadow"]) .slds-textarea[disabled],:host([data-render-mode="shadow"])
|
|
74
|
+
.slds-textarea.slds-is-disabled {
|
|
75
|
+
background-color: var(--slds-g-color-disabled-container-2);
|
|
76
|
+
border-color: var(--slds-g-color-border-disabled-2);
|
|
77
|
+
color: inherit;
|
|
78
|
+
cursor: not-allowed;
|
|
79
|
+
user-select: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([data-render-mode="shadow"]) .slds-textarea[disabled]:focus,:host([data-render-mode="shadow"])
|
|
83
|
+
.slds-textarea[disabled]:active,:host([data-render-mode="shadow"])
|
|
84
|
+
.slds-textarea.slds-is-disabled:focus,:host([data-render-mode="shadow"])
|
|
85
|
+
.slds-textarea.slds-is-disabled:active {
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* replace .slds-has-error with invalid */
|
|
90
|
+
|
|
91
|
+
:host([data-render-mode="shadow"][invalid]) .slds-textarea {
|
|
92
|
+
--slds-c-textarea-color-background: var(
|
|
93
|
+
--slds-g-color-neutral-base-100,
|
|
94
|
+
var(--slds-g-color-neutral-base-100)
|
|
95
|
+
);
|
|
96
|
+
--slds-c-textarea-color-border: var(--slds-g-color-error-base-40, var(--slds-g-color-error-base-50));
|
|
97
|
+
--slds-c-textarea-shadow: var(--slds-g-color-error-base-40, var(--slds-g-color-error-base-50)) 0 0 0
|
|
98
|
+
var(--slds-g-sizing-border-1) inset;
|
|
99
|
+
|
|
100
|
+
background-clip: padding-box;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* replace .slds-has-error with invalid */
|
|
104
|
+
|
|
105
|
+
:host([data-render-mode="shadow"][invalid]) .slds-textarea:focus,:host([data-render-mode="shadow"][invalid]) .slds-textarea:active {
|
|
106
|
+
--slds-c-textarea-text-color-focus: var(--slds-c-textarea-text-color-error-focus);
|
|
107
|
+
--slds-c-textarea-color-background-focus: var(
|
|
108
|
+
--slds-c-textarea-color-background-error-focus,
|
|
109
|
+
var(--slds-g-color-neutral-base-100, var(--slds-g-color-neutral-base-100))
|
|
110
|
+
);
|
|
111
|
+
--slds-c-textarea-shadow-focus:
|
|
112
|
+
var(--slds-g-color-error-base-40, var(--slds-g-color-error-base-50)) 0 0 0 var(--slds-g-sizing-border-1)
|
|
113
|
+
inset,
|
|
114
|
+
0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-brand-base-50);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* TODO W-12674349: remove after name-value-list utils are added */
|
|
118
|
+
|
|
119
|
+
:host([data-render-mode="shadow"]) .slds-assistive-text {
|
|
120
|
+
position: absolute !important;
|
|
121
|
+
margin: -1px !important;
|
|
122
|
+
border: 0 !important;
|
|
123
|
+
padding: 0 !important;
|
|
124
|
+
width: 1px !important;
|
|
125
|
+
height: 1px !important;
|
|
126
|
+
overflow: hidden !important;
|
|
127
|
+
clip: rect(0 0 0 0) !important;
|
|
128
|
+
text-transform: none !important;
|
|
129
|
+
white-space: nowrap !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host([data-render-mode="shadow"][variant='label-inline'].slds-form-element_horizontal) {
|
|
133
|
+
padding: 0;
|
|
134
|
+
margin-block-end: 0;
|
|
135
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* sldsFormElementUtils.css and form-element.css have many similarities
|
|
5
4
|
* however, they are used for very different use cases, and this is why
|
|
@@ -255,7 +254,9 @@
|
|
|
255
254
|
display: block;
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
257
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
258
|
+
/* for rich text via lightning-quill */
|
|
259
|
+
|
|
259
260
|
/* @W-14518344 The following line still exists in SLDS-internal
|
|
260
261
|
but it was removed here because it was causing the input
|
|
261
262
|
component to not display it's bottom border
|
|
@@ -294,8 +295,7 @@
|
|
|
294
295
|
/* Force inner child input to not have padding and margin.
|
|
295
296
|
The parent (ex. lightning-input-field) will provide it instead */
|
|
296
297
|
|
|
297
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline']
|
|
298
|
-
{
|
|
298
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline'] {
|
|
299
299
|
padding: 0;
|
|
300
300
|
margin-block-end: 0;
|
|
301
301
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
2
|
+
/* ASSISTIVE TEXT */
|
|
3
|
+
:host([data-render-mode="shadow"]) .slds-assistive-text {
|
|
4
|
+
position: absolute !important;
|
|
5
|
+
margin: -1px !important;
|
|
6
|
+
border: 0 !important;
|
|
7
|
+
padding: 0 !important;
|
|
8
|
+
width: 1px !important;
|
|
9
|
+
height: 1px !important;
|
|
10
|
+
overflow: hidden !important;
|
|
11
|
+
clip: rect(0 0 0 0) !important;
|
|
12
|
+
text-transform: none !important;
|
|
13
|
+
white-space: nowrap !important;
|
|
14
|
+
}
|
|
@@ -8,7 +8,7 @@ To specify your toast position and the maximum number of toasts to display, use
|
|
|
8
8
|
|
|
9
9
|
To show a toast notification, call the function `show(config, comp)` from `lightning/toast`. The function creates a single page-level toast container if one does not exist. The `show(config, comp)` function contains two parameters:
|
|
10
10
|
|
|
11
|
-
- The `config` parameter references an object that specifies toast configuration attributes.
|
|
11
|
+
- The `config` parameter references an object that specifies toast configuration attributes. See the **Toast Configuration Attributes** section for a list of properties to include in the config.
|
|
12
12
|
- The `comp` parameter is a reference to the local component or `this`.
|
|
13
13
|
|
|
14
14
|
This example creates an informational toast that displays until the user dismisses it.
|
|
@@ -73,19 +73,19 @@ To provide links in toasts on small screens and mobile environments, we recommen
|
|
|
73
73
|
|
|
74
74
|
For more information on the toast configuration attributes, see the Specification tab.
|
|
75
75
|
|
|
76
|
-
When you use `labelLinks` or `messageLinks`, the content of `label` or `message` is rendered using [`lightning-formatted-rich-text`](/docs/component-library/bundle/lightning-formatted-rich-text/documentation). See the
|
|
77
|
-
|
|
76
|
+
When you use `labelLinks` or `messageLinks`, the content of `label` or `message` is rendered using [`lightning-formatted-rich-text`](/docs/component-library/bundle/lightning-formatted-rich-text/documentation). See the
|
|
77
|
+
[`lightning-formatted-rich-text` documentation](/docs/component-library/bundle/lightning-formatted-rich-text/documentation) for expected styling when rendering a link.
|
|
78
78
|
|
|
79
79
|
#### Toast Variants
|
|
80
80
|
|
|
81
81
|
The `variant` attribute sets the component's color and icon.
|
|
82
82
|
|
|
83
|
-
| Value
|
|
84
|
-
|
|
|
85
|
-
| `info` (default) | grey
|
|
86
|
-
| `success`
|
|
87
|
-
| `warning`
|
|
88
|
-
| `error`
|
|
83
|
+
| Value | Color | Icon |
|
|
84
|
+
| ---------------- | ------ | ----------------- |
|
|
85
|
+
| `info` (default) | grey | `utility:info` |
|
|
86
|
+
| `success` | green | `utility:success` |
|
|
87
|
+
| `warning` | orange | `utility:warning` |
|
|
88
|
+
| `error` | red | `utility:error` |
|
|
89
89
|
|
|
90
90
|
#### Toast Dismissal
|
|
91
91
|
|
|
@@ -96,13 +96,13 @@ The `mode` attribute sets the component's dismissal.
|
|
|
96
96
|
|
|
97
97
|
If you don't provide a `mode` value, the toast dismissal is determined by the value of `variant` and whether the `toast` has a link or links present in `label` or `message`.
|
|
98
98
|
|
|
99
|
-
| Variant
|
|
100
|
-
|
|
|
101
|
-
| `info`
|
|
102
|
-
| `info`
|
|
103
|
-
| `success` | Yes
|
|
104
|
-
| `success` | No
|
|
105
|
-
| `warning` | Yes
|
|
106
|
-
| `warning` | No
|
|
107
|
-
| `error`
|
|
108
|
-
| `error`
|
|
99
|
+
| Variant | Has link? | Default Mode |
|
|
100
|
+
| --------- | --------- | ------------- |
|
|
101
|
+
| `info` | Yes | `sticky` |
|
|
102
|
+
| `info` | No | `sticky` |
|
|
103
|
+
| `success` | Yes | `sticky` |
|
|
104
|
+
| `success` | No | `dismissible` |
|
|
105
|
+
| `warning` | Yes | `sticky` |
|
|
106
|
+
| `warning` | No | `sticky` |
|
|
107
|
+
| `error` | Yes | `sticky` |
|
|
108
|
+
| `error` | No | `sticky` |
|