- Changelog
- Next
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 2.0.0-beta.88
- 2.0.0-beta.87
- 2.0.0-beta.86
- 2.0.0-beta.85
- 2.0.0-beta.84
- 2.0.0-beta.83
- 2.0.0-beta.82
- 2.0.0-beta.81
- 2.0.0-beta.80
- 2.0.0-beta.79
- 2.0.0-beta.78
- 2.0.0-beta.77
- 2.0.0-beta.76
- 2.0.0-beta.75
- 2.0.0-beta.74
- 2.0.0-beta.73
- 2.0.0-beta.72
- 2.0.0-beta.71
- 2.0.0-beta.70
- 2.0.0-beta.69
- 2.0.0-beta.68
- 2.0.0-beta.67
- 2.0.0-beta.66
- 2.0.0-beta.65
- 2.0.0-beta.64
- 2.0.0-beta.63
- 2.0.0-beta.62
- 2.0.0-beta.61
- 2.0.0-beta.60
- 2.0.0-beta.59
- 2.0.0-beta.58
- 2.0.0-beta.57
- 2.0.0-beta.56
- 2.0.0-beta.55
- 2.0.0-beta.54
- 2.0.0-beta.53
- 2.0.0-beta.52
- 2.0.0-beta.51
- 2.0.0-beta.50
- 2.0.0-beta.49
- 2.0.0-beta.48
- 2.0.0-beta.47
- 2.0.0-beta.46
- 2.0.0-beta.45
- 2.0.0-beta.44
- 2.0.0-beta.43
- 2.0.0-beta.42
- 2.0.0-beta.41
- 2.0.0-beta.40
- 2.0.0-beta.39
- 2.0.0-beta.38
- 2.0.0-beta.37
- 2.0.0-beta.36
- 2.0.0-beta.35
- 2.0.0-beta.34
- 2.0.0-beta.33
- 2.0.0-beta.32
- 2.0.0-beta.31
- 2.0.0-beta.30
- 2.0.0-beta.29
- 2.0.0-beta.28
- 2.0.0-beta.27
- 2.0.0-beta.26
- 2.0.0-beta.25
- 2.0.0-beta.24
- 2.0.0-beta.23
- 2.0.0-beta.22
- 2.0.0-beta.21
- 2.0.0-beta.20
- 2.0.0-beta.19
- 2.0.0-beta.18
- 2.0.0-beta.17
- 2.0.0-beta.16
- 2.0.0-beta.15
- 2.0.0-beta.14
- 2.0.0-beta.13
- 2.0.0-beta.12
- 2.0.0-beta.11
- 2.0.0-beta.10
- 2.0.0-beta.9
- 2.0.0-beta.8
- 2.0.0-beta.7
- 2.0.0-beta.6
- 2.0.0-beta.5
- 2.0.0-beta.4
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
Changelog
Shoelace follows
Semantic Versioning. Breaking changes in components with the
Components with the
New versions of Shoelace are released as-needed and generally occur when a critical mass of changes have accumulated. At any time, you can see what’s coming in the next release by visiting next.shoelace.style.
Next
- Added JSDoc comments to React Wrappers for better documentation when hovering a component. #1450
-
Added
displayNameto React Wrappers for better debugging. #1450 - Added non-auto-registering routes for Components to fix a number of issues around auto-registration. #1450
- Added a console warning if you attempt to register the same Shoelace component twice. #1450
-
Added tests for
<sl-qr-code>#1416 -
Added support for pressing Space to select/toggle selected
<sl-menu-item>elements #1429 -
Added support for virtual elements in
<sl-popup>#1449 -
Added the
spinnerpart to<sl-button>#1460 -
Added a
shoelace.jsandshoelace-autoloader.jsto exportmaps. #1450 -
Fixed React component treeshaking by introducing
sideEffectskey inpackage.json. #1450 -
Fixed a bug in
<sl-tree>where it was auto-defining<sl-tree-item>. #1450 -
Fixed a bug in focus trapping of modal elements like
<sl-dialog>. We now manually handle focus ordering as well as addedoffsetParent()check for tabbable boundaries in Safari. Test cases added for<sl-dialog>inside a shadowRoot #1403 -
Fixed a bug in
valueAsDateon<sl-input>where it would always settype="date"for the underlying<input>element. It now falls back to the native browser implementation for the in-memory input. This may cause unexpected behavior if you’re usingvalueAsDateon any input elements that aren’ttype="date". #1399 -
Fixed a bug in
<sl-qr-code>where thebackgroundattribute was never passed to the QR code #1416 -
Fixed a bug in
<sl-dropdown>where aria attributes were incorrectly applied to the default<slot>causing Lighthouse errors #1417 -
Fixed a bug in
<sl-carousel>that caused navigation to work incorrectly in some case #1420 - Fixed a number of slots that incorrectly had aria- and/or role attributes directly on them #1422
-
Fixed a bug in
<sl-tree>that caused focus to be stolen when removing focused tree items #1430 -
Fixed a bug in
<sl-dialog>and<sl-drawer>that caused nested modals to respond too eagerly to the Esc key #1457 - Updated ESLint and related plugins to the latest versions
2.5.2
- Fixed broken source buttons in the docs #1401
2.5.1
- Fixed missing extensions from imports that broke with TypeScript 5 #1391
-
Fixed a regression that caused slotted styles to not work in
<sl-select>#1387 - Reimplemented the theme switcher so it supports light, dark, and system (auto) in the docs #1395
2.5.0
This release unbundles Lit (and other dependencies) from Shoelace. There are now two distributions for the project:
cdn/– a bundled, CDN-ready distributiondist/– an unbundled, npm-ready distribution
If you’re a CDN user, you must update your path to point to cdn/ instead of
dist/. You can copy and paste the latest paths from the
installation page.
-
Added a
cdn/distribution for bundled dependencies (imports for npm users remain the same) #1369 -
Added the
checkboxpart and related exported parts to<sl-tree-item>so you can target it with CSS #1318 -
Added the
submenu-iconpart to<sl-menu-item>(submenus have not been implemented yet, but this part is required to allow customizations) -
Added the ability to use Sprite Sheets when using
<sl-icon>via a custom resolver. -
Added tests for
<sl-split-panel>#1343 -
Fixed a bug where changing the size of
<sl-radio-group>wouldn’t update the size of child elements -
Fixed a bug in
<sl-select>and<sl-color-picker>where thesizeattribute wasn’t being reflected #1318 -
Fixed a bug in
<sl-radio-group>where<sl-radio>would not get checked if<sl-radio-group>was defined first. #1364 -
Fixed a bug in
<sl-input>that caused date pickers to look filled in even when empty in Safari #1341 -
Fixed a bug in
<sl-radio-group>that sometimes caused dual scrollbars in containers that overflowed #1380 -
Fixed a bug in
<sl-carousel>not loading the English language pack automatically. #1384 -
Improved
<sl-button>so it can accept children of variable heights #1317 - Improved the docs to more clearly explain sizing radios and radio buttons
-
Improved the performance of
<sl-rating>by partially rendering unseen icons #1310 - Improved the Portuguese translation #1336
- Improved the German translation #1339
-
Improved the autoloader so it watches
<html>instead of<body>since the latter gets replaced by some frameworks #1338 - Improved the Rails documentation #1258
- Replaced Docsify with Eleventy to generate a static HTML version of the docs
- Updated esbuild to 0.18.2
- Updated Lit to 2.7.5
- Updated TypeScript to 5.1.3
2.4.0
-
Added the
discover()function to the experimental autoloader’s exports #1236 -
Added the
sizeattribute to<sl-radio-group>so labels and controls will be sized consistently #1301 -
Added tests for
<sl-animated-image>#1246 -
Added tests for
<sl-animation>#1274 -
Fixed a bug in
<sl-tree-item>that prevented long labels from wrapping #1243 -
Fixed a bug in
<sl-tree-item>that caused labels to be misaligned when text wraps #1244 -
Fixed an incorrect CSS property value in
<sl-checkbox>#1272 -
Fixed a bug in
<sl-avatar>that caused the initials to show up behind images with transparency #1260 -
Fixed a bug in
<sl-split-panel>that prevented the divider from being focusable in some browsers #1288 -
Fixed a bug that caused
<sl-tab-group>to affect scrolling when initializing #1292 -
Fixed a bug in
<sl-menu-item>that allowed the hover state to show when focused #1282 -
Fixed a bug in
<sl-carousel>that prevented interactive elements from receiving clicks #1262 -
Fixed a bug in
<sl-input>that causedvalueAsDateandvalueAsNumberto not be set synchronously in some cases #1302 -
Improved the behavior of
<sl-carousel>when used inside a flex container #1235 -
Improved the behavior of
<sl-tree-item>to support buttons and other interactive elements #1234 -
Improved the performance of
<sl-include>to prevent an apparent memory leak in some browsers #1284 -
Improved the accessibility of
<sl-select>,<sl-split-panel>, and<sl-details>by ensuring slots don’t have roles #1287
2.3.0
- Added an experimental autoloader
-
Added the
subpathargument togetBasePath()to make it easier to generate full paths to any file - Added
custom-elements.jsonto package exports -
Added
tag__base,tag__content,tag__remove-button,tag__remove-button__baseparts to<sl-select> -
Fixed a bug in
<sl-rating>that allowed thesl-changeevent to be emitted when disabled #1220 -
Fixed a regression in
<sl-input>that causedminandmaxto stop working whentype="date"#1224 -
Improved accessibility of
<sl-carousel>#1218 -
Improved
<sl-option>so it converts non-string values to strings for convenience #1226 - Updated the docs to dogfood the autoloader
2.2.0
- Added TypeScript types to all custom events #1183
- Added the
svgpart to<sl-icon> -
Added the
getForm()method to all form controls #1180 - Added the experimental carousel component #851
-
Fixed a bug in
<sl-select>that caused the display label to render incorrectly in Chrome after form validation #1197 -
Fixed a bug in
<sl-input>that prevented users from applying their own value forautocapitalize,autocomplete, andautocorrectwhen usingtype="password#1205 -
Fixed a bug in
<sl-tab-group>that prevented scroll controls from showing when dynamically adding tabs #1208 -
Fixed a bug in
<sl-input>that caused the calendar icon to be clipped in Firefox #1213 -
Fixed a bug in
<sl-tab>that causedsl-tab-showto be emitted when activating the close button -
Fixed a bug in
<sl-spinner>that caused--track-colorto be invisible with certain colors -
Fixed a bug in
<sl-menu-item>that caused the focus color to show when selecting menu items with a mouse or touch device -
Fixed a bug in
<sl-select>that causedsl-changeandsl-inputto be emitted too early #1201 -
Fixed a positioning edge case that caused
<sl-popup>to positioned nested popups incorrectly #1135 -
Fixed a bug in
<sl-tree>that caused the tree item to collapse when clicking a child item, dragging the mouse, and releasing it on the parent node #1082 - Updated
@shoelace-style/localizeto 3.1.0 - Updated
@floating-ui/domto 1.2.1
When using <input type="password"> the default value for autocapitalize,
autocomplete, and autocorrect may be affected due to the bug fixed in
#1205restore the previous behavior.
2.1.0
-
Added the
sl-focusandsl-blurevents to<sl-color-picker> -
Added the
focus()andblur()methods to<sl-color-picker> -
Added the
sl-invalidevent to all form controls to enable custom validation logic #1167 -
Added
validityandvalidationMessageproperties to all form controls #1167 -
Added the
relattribute to<sl-button>to allow users to create button links that point to specific targets #1200 -
Fixed a bug in
<sl-animated-image>where the play and pause buttons were transposed #1147 -
Fixed a bug that prevented
web-types.jsonfrom being generated #1154 -
Fixed a bug in
<sl-color-picker>that preventedsl-changeandsl-inputfrom emitting when using the eye dropper #1157 -
Fixed a bug in
<sl-dropdown>that prevented keyboard users from selecting menu items when using the keyboard #1165 -
Fixed a bug in the template for
<sl-select>that caused theform-control-help-textpart to not be in the same location as other form controls #1178 -
Fixed a bug in
<sl-checkbox>and<sl-switch>that caused the browser to scroll incorrectly when focusing on a control in a container with overflow #1169 -
Fixed a bug in
<sl-menu-item>that caused theclickevent to be emitted when the item was disabled #1113 -
Fixed a bug in form controls that erroneously prevented validation states from being set when
novalidatewas used on the containing form #1164 -
Fixed a bug in
<sl-checkbox>that caused the required asterisk to appear before the label in Chrome - Fixed a bug that prevented large form control labels from having the correct font size #1195
-
Improved the behavior of
<sl-dropdown>in Safari so keyboard interaction works the same as in other browsers #1177 - Improved the icons page so it’s not as sluggish in Safari #1122
-
Improved the accessibility of
<sl-switch>when used in forced-colors / Windows High Contrast mode #1114 - Improved user interaction heuristics for all form controls #1175
2.0.0
This is the first stable release of Shoelace 2, meaning breaking changes to the API will no longer be accepted for this version. Development of Shoelace 2.0 started in January 2020. The first beta was released on July 15, 2020. Since then, Shoelace has grown quite a bit! Here are some stats from the project as of January 24, 2023:
- 55 components have been built
- Over 2,500 commits have been made to the project
- 88 beta versions have been released
- 85 people have contributed to the project
- 669 issues have been filed on GitHub
- 274 pull requests have been opened
- More than 150 discussions have been started on GitHub
- Over 500 people have joined the Shoelace community on Discord
- Over 300 million CDN hits per month
- Over 13,000 npm downloads per week
- 73rd most popular project on jsDelivr
- [#2
I’d like to extend a very special thank you to every single contributor who worked to make this possible. Everyone who’s filed a bug, submitted a PR, requested a feature, started a discussion, helped with testing, and advocated for the project. You are just as responsible for Shoelace’s success as I am. I’d also like to thank the folks at Font Awesome for recognizing Shoelace’s potential and believing in me to make it happen.
Thank you! And keep building awesome stuff!
Without further ado, here are the notes for this release.
-
Added support for the
inertattribute on<sl-menu-item>to allow hidden menu items to not accept focus #1107 - Added the
tagpart to<sl-select> -
Added
sl-hoverevent to<sl-rating>#1125 - Added the
@documentationtag with a link to the docs for each component -
Added the
formattribute to all form controls to allow placing them outside of a<form>element #1130 -
Added the
getFormControls()function as an alternative toHTMLFormElement.elements -
Added missing docs for the
header-actionsslot in<sl-dialog>and<sl-drawer> -
Added
hue-slider-handleandopacity-slider-handleparts to<sl-color-picker>and correct other part names in the docs #1142 -
Fixed a bug in
<sl-select>that prevented placeholders from showing whenmultiplewas used #1109 -
Fixed a bug in
<sl-select>that caused tags to not be rounded when using thepillattribute #1117 -
Fixed a bug in
<sl-select>where thesl-changeandsl-inputevents didn’t weren’t emitted when removing tags #1119 -
Fixed a bug in
<sl-select>that caused the listbox to scroll to the first selected item when selecting multiple items #1138 -
Fixed a bug in
<sl-select>where the input color and input hover color wasn’t using the correct design tokens #1143 -
Fixed a bug in
<sl-color-picker>that logged a console error when parsing swatches with whitespace -
Fixed a bug in
<sl-color-picker>that caused selected colors to be wrong due to incorrect HSV calculations -
Fixed a bug in
<sl-color-picker>that prevented the initial value from being set correct when assigned as a property #1141 -
Fixed a bug in
<sl-radio-button>that caused the checked button’s right border to be incorrect #1110 -
Fixed a bug in
<sl-spinner>that caused the animation to stop working correctly in Safari #1121 - Fixed a bug that prevented the entire
<sl-tab-panel>to be hidden when inactive -
Fixed a bug that caused the value of
<sl-radio-group>to beundefineddepending on where the radio was activated #1134 - Fixed a bug that caused body content to shift when scroll locking was enabled #1132
- Fixed a bug in
<sl-icon>that caused icons to sometimes be clipped in Safari -
Fixed a bug that prevented label colors from inheriting by default in
<sl-checkbox>,<sl-radio>, and<sl-switch> -
Fixed a bug in
<sl-radio-group>that caused an extra margin between the host element and the internal fieldset #1139 -
Refactored the
ShoelaceFormControlinterface to remove theinvalidproperty, allowing a more intuitive API for controlling validation internally -
Renamed the internal
FormSubmitControllertoFormControlControllerto better reflect what it’s used for - Updated Lit to 2.6.1
- Updated Floating UI to 1.1.0
- Updated all other dependencies to latest versions
2.0.0-beta.88
This release includes a complete rewrite of <sl-select> to improve accessibility and
simplify its internals.
-
🚨 BREAKING: rewrote
<sl-select>- Accessibility has been significantly improved, especially in screen readers
-
You must use
<sl-option>instead of<sl-menu-item>for options now -
The
suffixslot was removed because it was confusing to users and its position made the clear button inaccessible -
The
max-tags-visibleattribute has been renamed tomax-options-visible - Many parts have been removed or renamed (please see the docs for more details)
-
🚨 BREAKING: removed the
sl-label-changeevent from<sl-menu-item>(listen forslotchangeinstead) -
🚨 BREAKING: removed type to select logic from
<sl-menu>(this was added specifically for<sl-select>which no longer uses<sl-menu>) -
🚨 BREAKING: swatches in
<sl-color-picker>are no longer present by default (but you can set them using theswatchesattribute now) -
🚨 BREAKING: improved the accessibility of
<sl-menu-item>so checked items are announced as such-
Checkbox menu items must now have
type="checkbox"before applying thecheckedattribute - Checkbox menu items will now toggle their
checkedstate on their own when selected - Disabled menu items will now receive focus, but are still not selectable
-
Checkbox menu items must now have
- Added the
<sl-option>component - Added Traditional Chinese translation #1086
-
Added support for
swatchesto be an attribute of<sl-color-picker>so swatches can be defined declaratively (it was previously a property; use a;to separate color values) -
Fixed a bug in
<sl-tree-item>where the checked/indeterminate states could get out of sync when using themultipleoption #1076 -
Fixed a bug in
<sl-tree>that causedsl-selection-changeto emit before the DOM updated #1096 -
Fixed a bug that prevented
<sl-switch>from submitting a default value ofonwhen no value was provided #1103 -
Fixed a bug in
<sl-textarea>that caused the scrollbar to show sometimes when usingresize="auto" -
Fixed a bug in
<sl-input>and<sl-textarea>that caused its validation states to be out of sync in some cases #1063 - Reorganized all components to make class structures more consistent
- Updated some incorrect default values for design tokens in the docs #1097
-
Updated non-public fields to use the
privatekeyword (these were previously private only by convention, but now TypeScript will warn you) -
Updated the hover style of
<sl-menu-item>to be consistent with<sl-option> -
Updated the status of
<sl-tree>and<sl-tree-item>from experimental to stable -
Updated React wrappers to use the latest API from
@lit-labs/react#1090 - Updated Bootstrap Icons to 1.10.3
2.0.0-beta.87
- 🚨 BREAKING: changed the default size of medium checkboxes, radios, and switches to 18px instead of 16px
-
🚨 BREAKING: renamed the
--sl-toggle-sizedesign token to--sl-toggle-size-medium - Added the
--sl-toggle-size-smalland--sl-toggle-size-largedesign tokens -
Added the
sizeattribute to<sl-checkbox>,<sl-radio>, and<sl-switch>#1071 -
Added the
sl-inputevent to<sl-checkbox>,<sl-color-picker>,<sl-radio>,<sl-range>, and<sl-switch> -
Added HSV format to
<sl-color-picker>#1072 -
Fixed a bug in
<sl-color-picker>that sometimes prevented the color from updating when clicking or tapping on the controls -
Fixed a bug in
<sl-color-picker>that prevented text from being entered in the color input -
Fixed a bug in
<sl-input>that caused thesl-changeevent to be incorrectly emitted when the value was set programmatically #917 -
Fixed a bug in
<sl-input>and<sl-textarea>that made it impossible to disable spell checking #1061 -
Fixed non-modal behaviors in
<sl-drawer>when using thecontainedattribute #1051 -
Fixed a bug in
<sl-checkbox>and<sl-radio>that caused the checked icons to not scale property when resized - Fixed a bug that broke React imports #1050
-
Refactored
<sl-color-picker>to use@ctrl/tinycolorinstead ofcolorsaving ~67KB #1072 -
Removed the
formdataevent polyfill since it’s now available in the last two versions of all major browsers
2.0.0-beta.86
-
🚨 BREAKING: changed the default value of
datein<sl-relative-time>to the current date instead of the Unix epoch -
🚨 BREAKING: removed the
handle-iconpart and slot from<sl-image-comparer>(usehandleinstead) -
🚨 BREAKING: removed the
handleslot from<sl-split-panel>(use thedividerslot instead) -
🚨 BREAKING: removed the
--box-shadowcustom property from<sl-alert>(apply a box shadow to::part(base)instead) -
🚨 BREAKING: removed the
play-iconandpause-iconparts (use theplay-iconandpause-iconslots instead) -
Added
header-actionsslot to<sl-dialog>and<sl-drawer> -
Added the
expand-iconandcollapse-iconslots to<sl-details>and refactored the icon animation #1046 -
Added the
play-iconandpause-iconslots to<sl-animated-image>so you can customize the default icons - Converted
isTreeItem()export to a static method of<sl-tree-item> -
Fixed a bug in
<sl-tree-item>wheresl-selection-changewas emitted when the selection didn’t change #1030 -
Fixed a bug in
<sl-button-group>that caused the border to render incorrectly when hovering over icons inside buttons #1035 -
Fixed an incorrect default for
flip-fallback-strategyin<sl-popup>that caused the fallback strategy to beinitialinstead ofbest-fit, which is inconsistent with Floating UI’s default #1036 - Fixed a bug where browser validation tooltips would show up when hovering over form controls #1037
-
Fixed a bug in
<sl-tab-group>that sometimes caused the active tab indicator to not animate -
Fixed a bug in
<sl-tree-item>that caused the expand/collapse icon slot to be out of sync when the node is open initially -
Fixed the mislabeled
handle-iconslot in<sl-image-comparer>(it now points to the<slot>, not the slot’s fallback content) -
Fixed the border radius in
<sl-dropdown>so it matches with nested<sl-menu>elements - Fixed a bug that caused all button values to appear in submitted form data even if they weren’t the submitter
- Improved IntelliSense in VS Code, courtesy of Burton’s amazing CEM Analyzer plugin
-
Improved accessibility of
<sl-alert>so the alert is announced and the close button has a label -
Improved accessibility of
<sl-progress-ring>so slotted labels are announced along with visually hidden labels -
Refactored all styles and animations to use
translate,rotate, andscaleinstead oftransform - Removed slot wrappers from many components, allowing better control over user-applied styles
- Removed unused aria attributes from
<sl-skeleton> -
Replaced the
xicon in the system icon library withx-lgto improve icon consistency
2.0.0-beta.85
-
Fixed a bug in
<sl-dropdown>that caused containing dialogs, drawers, etc. to close when pressing Escape while focused #1024 -
Fixed a bug in
<sl-tree-item>that allowed lazy nodes to be incorrectly selected #1023 -
Fixed a typing bug in
<sl-tree-item>#1026 -
Updated Floating UI to 1.0.7 to fix a bug that prevented
hoistfrom working correctly in<sl-dropdown>after a recent update #1024
2.0.0-beta.84
-
🚨 BREAKING: Removed the
fieldsetproperty from<sl-radio-group>(use CSS parts if you want to keep the border) #965 -
🚨 BREAKING: Removed
baseandlabelparts from<sl-radio-group>(useform-controlandform-control__labelinstead) #965 -
🚨 BREAKING: Removed the
basepart from<sl-icon>(style the host element directly instead) -
🚨 BREAKING: Removed the
invalidattribute from form controls (use[data-invalid]to target it with CSS) -
Added validation states to all form controls to allow styling based on various validation states
#1011
data-required- indicates that a value is requireddata-optional- indicates that a value is NOT requireddata-invalid- indicates that the form control is invaliddata-valid- indicates that the form control is valid-
data-user-invalid- indicates the form control is invalid and the user has interacted with it -
data-user-valid- indicates the form control is valid and the user has interacted with it
- Added npm exports #1020
- Added
checkValidity()method to all form controls - Added
reportValidity()method to<sl-range> -
Added
button--checkedto<sl-radio-button>andcontrol--checkedto<sl-radio>to style just the checked state #933 -
Added tests for
<sl-menu>,<sl-menu-item>,<sl-menu-label>,<sl-rating>,<sl-relative-time>,<sl-skeleton>,<sl-tab-panel>and<sl-tag>#935 #949 #956 - Added translations for Hungarian, Turkish, English (United Kingdom) and German (Austria) #982
-
Added
--indicator-transition-durationcustom property to<sl-progress-ring>#986 -
Added
--sl-input-required-content-colorcustom property to all form controls #948 -
Added the ability to cancel
sl-showandsl-hideevents in<sl-details>#993 - Added
focus()andblur()methods to<sl-radio-button> -
Added
stepUp()andstepDown()methods to<sl-input>and<sl-range>#1013 -
Added
showPicker()method to<sl-input>#1013 - Added the
handle-iconpart to<sl-image-comparer> -
Added
caret,check,grip-vertical,indeterminate, andradioicons to the system library and removedcheck-lg#985 -
Added the
loadingattribute to<sl-avatar>to allow lazy loading of image avatars #1006 -
Added
formenctypeattribute to<sl-button>#1009 -
Added
exportstopackage.jsonand removed themainandmoduleproperties #1007 -
Fixed a bug in
<sl-card>that prevented the border radius to apply correctly to the header #934 -
Fixed a bug in
<sl-button-group>where the inner border disappeared on focus #980 -
Fixed a bug that caused prefix/suffix animations in
<sl-input>to wobble #996 -
Fixed a bug in
<sl-icon>that prevented color from being set on the host element #999 -
Fixed a bug in
<sl-dropdown>where thekeydownevent erroneously propagated to ancestors when pressing Escape #990 -
Fixed a bug that prevented arrow keys from scrolling content within
<sl-dialog>and<sl-drawer>#925 -
Fixed a bug that prevented Escape from closing
<sl-dialog>and<sl-drawer>in some cases - Fixed a bug that caused forms to submit unexpectedly when selecting certain characters #988
-
Fixed a bug in
<sl-radio-group>that prevented theinvalidproperty from correctly reflecting validity sometimes #992 -
Fixed a bug in
<sl-tree>that prevented selections from working correctly on dynamically added tree items #963 -
Fixed module paths in
custom-elements.jsonso they point to the dist file instead of the source file #725 -
Fixed an incorrect return value for
reportValidity()in<sl-color-picker> -
Improved
<sl-badge>to improve padding and render relative to the current font size -
Improved how many components display in forced-colors mode / Windows High Contrast mode
- Improved
<sl-color-picker>so it’s usable in forced-colors mode -
Improved
<sl-dialog>and<sl-drawer>so the panel is more visible in forced-colors mode - Improved
<sl-menu-item>so selections are visible in forced-colors mode - Improved
<sl-progress-bar>so it’s visible in forced-colors mode -
Improved
<sl-radio-button>so checked states are visible in forced-colors mode -
Improved
<sl-range>so the thumb, track, and tooltips are visible in forced-colors mode - Improved
<sl-rating>so icons are visible in forced-colors mode - Improved
<sl-split-panel>so the divider is visible in forced-colors mode - Improved
<sl-tree-item>so selected items are visible in forced-colors mode -
Improved
<sl-tab-group>so tabs are cleaner and easier to understand in forced-colors mode
- Improved
-
Improved positioning of the menu in
<sl-select>so you can customize the menu width #1018 -
Moved all component descriptions to
@summaryto get them within documentation tools #962 -
Refactored form controls to use the
ShoelaceFormControlinterface to improve type safety and consistency - Updated Lit to 2.4.1
- Updated
@shoelace-style/localizet0 3.0.3 to support for extended language codes - Updated Bootstrap Icons to 1.10.2
- Updated TypeScript to 4.8.4
- Updated esbuild to 0.15.14
- Updated all other dependencies to latest versions
2.0.0-beta.83
This release removes the <sl-responsive-media> component. When this component was
introduced, support for
aspect-ratio) wasn’t great. These days,
the property is supported
by all of Shoelace’s target browsers, making a dedicated component redundant.
-
🚨 BREAKING: Removed
<sl-responsive-media>(use the well-supportedaspect-ratioCSS property instead) -
🚨 BREAKING: Changed the
toggle-passwordattribute of<sl-input>topassword-togglefor consistency - Added an expand/collapse animation to
<sl-tree-item> - Added
sl-lazy-changeevent to<sl-tree-item> -
Added
expand-buttonpart to<sl-tree-item>#893 -
Added
password-visibleattribute to<sl-input>#913 - Fixed a bug in
<sl-popup>that didn’t account for the arrow’s diagonal size - Fixed a bug in
<sl-popup>that caused arrow placement to be incorrect with RTL -
Fixed a bug in
<sl-progress-ring>that caused the indeterminate animation to stop working in Safari #891 -
Fixed a bug in
<sl-range>that caused it to overflow a container at 100% width #905 -
Fixed a bug in
<sl-tree-item>that prevented custom expand/collapse icons from rendering -
Fixed a bug in
<sl-tree-item>where theexpand-iconandcollapse-iconslots were reversed -
Fixed a bug in
<sl-tree-item>that prevented the keyboard from working after lazy loading #882 -
Fixed a bug in
<sl-textarea>that prevented the textarea from resizing automatically when setting the value programmatically #912 - Fixed a handful of paths to prevent TypeScript from getting upset #886
-
Fixed a bug in
<sl-radio-group>where thebutton-group__basepart was documented but not exposed #909 -
Fixed a bug in
<sl-range>that caused the active track color to render on the wrong side in RTL #916 -
Refactored the internal event emitter to be part of
ShoelaceElementto reduce imports and improve DX - Downgraded Floating UI from 1.0.1 to 1.0.0 due to new logic that makes positioning much slower for certain components #915
-
Upgraded the status of
<sl-animated-image>,<sl-popup>, and<sl-split-panel>from experimental to stable
2.0.0-beta.82
-
Added the
syncandarrow-placementattributes to<sl-popup> -
Changed the
auto-sizeattribute of the experimental<sl-popup>component so it acceptshorizontal,vertical, andbothinstead of a boolean value -
Changed the
flip-fallback-placementattribute of the experimental<sl-popup>component toflip-fallback-placements -
Changed the
flip-fallback-strategyin the experimental<sl-popup>component to acceptbest-fitandinitialinstead ofbestFitandinitialPlacement -
Fixed a bug in
<sl-dropdown>that caused the panel to resize horizontally when the trigger is clipped by the viewport #860 -
Fixed a bug in
<sl-tree>where dynamically changing slotted items wouldn’t update the tree properly -
Fixed a bug in
<sl-split-panel>that caused the panel to stack when clicking on the divider in mobile versions of Chrome #862 - Fixed a bug in
<sl-popup>that prevented flip fallbacks from working as intended - Fixed a bug that caused concurrent animations to work incorrectly when the durations were different #867
-
Fixed a bug in
<sl-color-picker>that caused the trigger and color preview to ignore opacity on first render #869 -
Fixed a bug in
<sl-tree>that prevented the keyboard from working when the component was nested in a shadow root #871 -
Fixed a bug in
<sl-tab-group>that prevented the keyboard from working when the component was nested in a shadow root #872 - Fixed a bug in
<sl-tab>that allowed disabled tabs to erroneously receive focus -
Improved single selection in
<sl-tree>so nodes expand and collapse and receive selection when clicking on the label -
Renamed
expanded-iconandcollapsed-iconslots toexpand-iconandcollapse-iconin the experimental<sl-tree>and<sl-tree-item>components - Improved RTL support for
<sl-image-comparer> -
Refactored components to extend from
ShoelaceElementto makedirandlangreactive properties in all components
2.0.0-beta.81
-
🚨 BREAKING: removed the
basepart from<sl-menu>and removed an unnecessary<div>that made styling more difficult - Added the
anchorproperty to<sl-popup>to support external anchors -
Added read-only custom properties
--auto-size-available-widthand--auto-size-available-heightto<sl-popup>to improve support for overflowing popup content -
Added
labelto<sl-rating>to improve accessibility for screen readers -
Added the
base__popupandbase__arrowparts to<sl-tooltip>#858 -
Fixed a bug where auto-size wasn’t being applied to
<sl-dropdown>and<sl-select> - Fixed a bug in
<sl-popup>that caused auto-size to kick in before flip -
Fixed a bug in
<sl-popup>that prevented thearrow-paddingattribute from working as expected -
Fixed a bug in
<sl-tooltip>that prevented the popup from appearing with the correct z-index #854 -
Improved accessibility of
<sl-rating>so keyboard nav works better and screen readers announce it properly - Improved accessibility of
<sl-spinner>so screen readers no longer skip over it - Removed a user agent sniffing notice that appeared in Chrome #855
-
Removed the default hover effect in
<sl-tree-items>to make selections more obvious - Updated Floating UI to 1.0.1
- Updated esbuild to 0.15.1
- Updated all other dependencies to latest versions
2.0.0-beta.80
This release breaks radio buttons, which is something that needed to happen to solve a longstanding
accessibility issue where screen readers announced an incorrect number of radios, e.g. “1 of 1” instead of
“1 of 3.” Many attempts to solve this without breaking the existing API were made, but none worked across
the board. The new implementation upgrades <sl-radio-group> to serve as the “form
control” while <sl-radio> and <sl-radio-button> serve as options
within the form control.
To upgrade to this version, you will need to rework your radio controls by moving name up to
the radio group. And instead of setting checked to select a specific radio, you can set
value on the radio group and the checked item will update automatically.
-
🚨 BREAKING: improved accessibility of
<sl-radio-group>,<sl-radio>, and<sl-radio-button>so they announce properly in screen readers-
Added the
nameattribute to<sl-radio-group>and removed it from<sl-radio>and<sl-radio-button> -
Added the
valueattribute to<sl-radio-group>(use this to control which radio is checked) - Added the
sl-changeevent tosl-radio-group -
Added
setCustomValidity()andreportValidity()to<sl-radio-group> -
Removed the
checkedattribute from<sl-radio>and<sl-radio-button>(use the radio group’svalueattribute instead) -
Removed the
sl-changeevent from<sl-radio>and<sl-radio-button>(listen for it on the radio group instead) -
Removed the
invalidattribute from<sl-radio>and<sl-radio-button> -
Removed
setCustomValidity()andreportValidity()from<sl-radio>and<sl-radio-button>(now available on the radio group)
-
Added the
- Added the experimental
<sl-popup>component - Fixed a bug in
<sl-menu-item>where labels weren’t always aligned correctly -
Fixed a bug in
<sl-range>that caused the tooltip to be positioned incorrectly when switching between LTR/RTL - Refactored
<sl-dropdown>to use<sl-popup> -
Refactored
<sl-tooltip>to use<sl-popup>and added thebodypart -
Revert disabled focus behavior in
<sl-tab-group>,<sl-menu>, and<sl-tree>to be consistent with native form controls and menus #845
2.0.0-beta.79
-
Added experimental
<sl-tree>and<sl-tree-item>components #823 -
Added
--indicator-widthcustom property to<sl-progress-ring>#837 - Added Swedish translation #838
-
Added support for
step="any"for<sl-input type="number">#839 -
Changed the type of component styles from
CSSResulttoCSSResultGroup#828 -
Fixed a bug in
<sl-color-picker>where using Left and Right would select the wrong color -
Fixed a bug in
<sl-dropdown>that caused the position to be incorrect on the first show when usinghoist#843 -
Fixed a bug in
<sl-tab-group>where the divider was on the wrong side when usingplacement="end" -
Fixed a bug in
<sl-tab-group>that caused nested tab groups to scroll when usingplacement="start|end"#815 -
Fixed a bug in
<sl-tooltip>that caused the target to be lost after a slot change #831 -
Fixed a bug in
<sl-tooltip>that caused the position to be incorrect on the first show when usinghoist -
Improved accessibility of
<sl-tab-group>,<sl-tab>, and<sl-tab-panel>to announce better in screen readers and by allowing focus on disabled items -
Improved accessibility of
<sl-menu>and<sl-menu-item>by allowing focus on disabled items - Updated Lit to 2.2.8
- Update esbuild to 0.14.50
- Updated Bootstrap Icons to 1.9.1
- Updated Floating UI to 1.0.0
- Updated all other dependencies to latest versions
2.0.0-beta.78
-
🚨 BREAKING: Moved the
checked-iconandindeterminate-iconparts from a wrapper<span>to the<svg>in<sl-checkbox>#786 -
🚨 BREAKING: Moved the
checked-iconpart from a wrapper<span>to the<svg>in<sl-radio>#786 -
Added the
--track-active-offsetcustom property to<sl-range>#806 -
Fixed a bug that caused
<sl-select>to sometimes have two vertical scrollbars #814 - Fixed a bug that caused a gray line to appear between radio buttons #821
-
Fixed a bug that caused
<sl-animated-image>to not render anything when using theplayattribute initially #824 - Removed
:focus-visibleshim now that the last two major versions of Safari support it - Updated Bootstrap Icons to 1.9.0
- Updated esbuild to 0.14.49
- Updated Floating UI to 0.5.4
- Updated Lit to 2.2.7
- Updated all other dependencies to latest versions
2.0.0-beta.77
- Added styles to required form controls so they show an asterisk next to the label by default
- Added the
--sl-input-required-contentdesign token -
Added the
requiredattribute to<sl-radio-group>and fixed constraint validation logic to support custom validation - Added the
checked-iconpart to<sl-menu-item> -
Added the
no-spin-buttonsattribute to<sl-input type="number">#798 -
Added support for resetting forms using
<sl-button type="reset">#799 - Fixed a bug where a duplicate clear button showed in Firefox #791
-
Fixed a bug where setting
valueAsDateorvalueAsNumbertoo early on<sl-input>would throw an error #796 -
Fixed a bug in
<sl-color-picker>where empty values weren’t properly supported #797 -
Fixed a bug in
<sl-color-picker>where values were logged to the console when using the keyboard -
Fixed a bug in
<sl-input>where password controls would try to autocorrect/autocomplete/autocapitalize when the password is visible -
Fixed label alignment in
<sl-checkbox>and<sl-radio>so they align to the top of the control instead of the center when wrapping -
Fixed labels in
<sl-checkbox>and<sl-radio>so they use the--sl-input-label-colordesign token - Improved performance of the tabbable utility which can prevent the browser from temporarily locking up in focus traps #800
- Updated the
fieldsetattribute so it reflects in<sl-radio-group>
2.0.0-beta.76
- Added support for RTL animations in the Animation Registry
-
Fixed a bug where the bottom border of
<sl-select>could be cut off when the dropdown scrolls -
Fixed a bug in
<sl-select>that could result in the browser locking up due to an infinite positioning loop #777 -
Improved RTL animations for
<sl-drawer>#784 -
Improved RTL styles for
<sl-button-group>#783 - Improved RTL styles for the toast stack #785
- Improved typings for translations and localized terms
- Upgraded @shoelace-style/localize to 3.0
2.0.0-beta.75
- Added Persian translation #774
-
Added
color-schemeto light and dark themes to improve rendering of browser-provided UI #776 - Added
--track-widthcustom property to<sl-tab-group> -
Fixed focus rings for
<sl-input>,<sl-select>, and<sl-textarea>in Safari since they don’t use:focus-visible#767 -
Fixed a bug where calling
HTMLFormElement.reportValidity()would skip Shoelace form controls #772 -
Fixed a bug that prevented
<sl-tooltip>from closing when disabled #775 -
Fixed a bug that allowed
<sl-icon-button>to emit aclickevent when disabled #781 -
Improved the default icon for
<sl-image-comparer>so it’s more intuitive and removedgrip-verticalfrom system icon library - Improved RTL styles for many components #768
-
Improved base path logic to execute only when
getBasePath()is first called to better support SSR #778 -
Improved
DOMParserinstantiation in<sl-icon>to better support SSR #778 - Reverted menu item caching due to regression #766
- Updated Floating UI to 0.5.2
2.0.0-beta.74
-
🚨 BREAKING: reworked focus rings to use outlines instead of box shadows
- Removed the
--sl-focus-ring-alphadesign token -
Refactored
--sl-focus-ringto be anoutlineproperty instead of abox-shadowproperty -
Added
--sl-focus-ring-color,--sl-focus-ring-style, and--sl-focus-ring-offset
- Removed the
- 🚨 BREAKING: removed
variantfrom<sl-radio-button> - Added
sl-label-changeevent to<sl-menu-item> -
Added
blur(),click(), andfocus()methods as well assl-blurandsl-focusevents to<sl-icon-button>#730 - Added Tabler Icons example to icons page
-
Fixed a bug where updating a menu item’s label wouldn’t update the display label in
<sl-select>#729 - Fixed a bug where the FormData event polyfill was causing issues with older browsers #747
-
Fixed a bug that caused a console error when setting
valuetonullorundefinedin<sl-input>,<sl-select>, and<sl-textarea>#751 -
Fixed a bug that caused
<sl-checkbox>and<sl-radio>controls without avalueto submit asnullinstead ofonlike native inputs #744 -
Fixed a bug that caused
<sl-dropdown>and dependent components to add unexpected padding around the panel #743 -
Fixed a bug that prevented
valueAsDateandvalueAsNumberfrom updating synchronously #760 -
Fixed a bug that caused
<sl-menu-item>to load icons from the default library instead of the system library #765 -
Fixed a bug in
<sl-input>that prevented a canceledkeydownevent from submitting the containing form when pressing enter #764 -
Improved behavior of clearable and password toggle buttons in
<sl-input>and<sl-select>#745 -
Improved performance of
<sl-select>by caching menu items instead of traversing for them each time - Improved drag utility so initial click/touch events can be accepted #758
-
Improved
<sl-color-picker>to use an HSB grid instead of HSL to be more consistent with existing color picker implementations #762 -
Improved
<sl-color-picker>so the cursor is hidden and the preview is larger when dragging the grid - Refactored
<sl-menu>to be more performant by caching menu items on slot change - Reverted form submit logic #718
-
Updated the
disabledattribute so it reflects in<sl-dropdown>#741 -
Updated the
nameandiconattribute so they reflect in<sl-icon>#742 - Updated Lit to 2.2.5
- Updated Bootstrap Icons to 1.8.3
- Updated TypeScript to 4.7.2
- Updated esbuild to 0.14.40
- Updated all other dependencies to latest versions
2.0.0-beta.73
- Added
buttonpart to<sl-radio-button> -
Added custom validity examples and tests to
<sl-checkbox>,<sl-radio>, and<sl-radio-button> -
Added
enterkeyhintattribute to<sl-input>and<sl-textarea> -
Fixed a bug that prevented
setCustomValidity()from working with<sl-radio-button> -
Fixed a bug where the right border of a checked
<sl-radio-button>was the wrong color -
Fixed a bug that prevented a number of properties, methods, etc. from being documented in
<sl-radio>and<sl-radio-button> -
Fixed a bug in
<sl-avatar>that prevented valid images from showing after an invalid or missing image was provided #717 -
Fixed a bug that resulted in a console error being thrown on keydown in
<sl-dropdown>#719 -
Fixed a bug that prevented
<sl-dropdown>from being closed when opened initially #720 - Fixed a bug that caused the test runner to fail when using a locale other than en-US #726
- Improved form submit logic so most user-added event listeners will run after form data is attached and validation occurs #718
-
Improved accessibility of
<sl-tooltip>so screen readers announce the content on hover/focus #219 - Improved accessibility of form controls by exposing clear buttons and password visibility buttons to screen readers while keeping them out of the tab order #727
-
Updated
<sl-tab-group>and<sl-menu>to cycle through tabs and menu items instead of stopping at the first/last when using the keyboard - Removed path aliasing (again) because it doesn’t work with Web Test Runner’s esbuild plugin
2.0.0-beta.72
-
🚨 BREAKING: refactored parts in
<sl-input>,<sl-range>,<sl-select>, and<sl-textarea>to allow you to customize the label and help text position- Added
form-control-inputpart - Renamed
labeltoform-control-label - Renamed
help-texttoform-control-help-text
- Added
-
🚨 BREAKING: removed status from the
sl-errorevent payload in<sl-icon> - Added the experimental
<sl-radio-button>component -
Added
button-groupandbutton-group__baseparts to<sl-radio-group> -
Added the
labelattribute and slot to<sl-color-picker>to improve accessibility with screen readers - Fixed a bug that prevented form submission from working as expected in some cases
-
Fixed a bug that prevented
<sl-split-panel>from togglingverticalproperly #703 -
Fixed a bug that prevented
<sl-color-picker>from rendering a color initially #704 - Fixed a bug that caused focus trapping to fail when used inside a shadow root #709
- Improved accessibility throughout the docs
-
Improved accessibility of
<sl-dropdown>so the trigger’s expanded state is announced correctly -
Improved accessibility of
<sl-format-date>but rendering a<time>element instead of plain text - Improved accessibility of
<sl-select>so disabled controls announce correct - Improved accessibility in
<sl-tag>so remove buttons have labels -
Refactored
<sl-radio>to move selection logic into<sl-radio-group> - Updated slot detection logic so it ignores visually hidden elements
- Upgraded the status of
<sl-visually-hidden>from experimental to stable
2.0.0-beta.71
-
🚨 BREAKING: refactored exported parts to ensure composed components and their parts can be targeted via
CSS
-
Refactored the
eye-dropper-buttonpart and addedeye-dropper-button__base,eye-dropper-button__prefix,eye-dropper-button__label,eye-dropper-button__suffix, andeye-dropper-button__caretparts to<sl-color-picker> -
Refactored the
format-buttonpart and addedformat-button__base,format-button__prefix,format-button__label,format-button__suffix, andformat-button__caretparts to<sl-color-picker> -
Moved the
close-buttonpart in<sl-alert>to the internal<sl-icon-button>and removed the<span>that wrapped it -
Moved the
close-buttonpart in<sl-dialog>and<sl-drawer>to point to the host element and added theclose-button__basepart -
Renamed parts in
<sl-select>fromtag-basetotag__base,tag-contenttotag__content, andtag-remove-buttontotag__remove-button -
Moved the
close-buttonpart in<sl-tab>to the internal<sl-icon-button>and added theclose-button__basepart -
Moved the
scroll-buttonpart in<sl-tab-group>to the internal<sl-icon-button>and added thescroll-button__base,scroll-button--start, andscroll-button--endparts -
Moved the
remove-buttonpart in<sl-tag>to the internal<sl-icon-button>and added theremove-button__basepart
-
Refactored the
-
🚨 BREAKING: removed
checked-iconpart from<sl-menu-item>in preparation for parts refactor -
🚨 BREAKING: changed the
typeToSelect()method’s argument fromStringtoKeyboardEventin<sl-menu>to support more advanced key combinations -
Added
form,formaction,formmethod,formnovalidate, andformtargetattributes to<sl-button>#699 - Added Prettier and ESLint to markdown files
- Added background color and border to
<sl-menu> -
Added more tests for
<sl-input>,<sl-select>, and<sl-textarea> -
Fixed a bug that prevented forms from submitting when pressing Enter inside of an
<sl-input>#700 -
Fixed a bug in
<sl-input>that prevented thevalueAsDateandvalueAsNumberproperties from working when set before the component was initialized -
Fixed a bug in
<sl-dropdown>where pressing Home or End wouldn’t select the first or last menu items, respectively -
Improved
autofocusbehavior in Safari for<sl-dialog>and<sl-drawer>#693 -
Improved type to select logic in
<sl-menu>so it supports Backspace and gives users more time before resetting - Improved checkmark size and positioning in
<sl-menu-item> - Improved accessibility in form controls that have help text so they’re announced correctly in various screen readers
-
Removed feature detection for
focus({ preventScroll })since it no longer works in Safari - Removed the
--sl-tooltip-arrow-start-end-offsetdesign token -
Removed the
patternattribute from<sl-textarea>as it was documented incorrectly and never supported -
Replaced Popper positioning dependency with Floating UI in
<sl-dropdown>and<sl-tooltip>
2.0.0-beta.70
-
Added
tag-base,tag-content, andtag-remove-buttonparts to<sl-select>#682 -
Added support for focusing elements with
autofocuswhen<sl-dialog>and<sl-drawer>open #688 -
Added the
placementattribute to<sl-select>#687 - Added Danish translation #690
-
Fixed a bug that allowed
<sl-dropdown>to go into an incorrect state when activating the trigger while disabled #684 -
Fixed a bug where Safari would sometimes not focus after preventing
sl-initial-focus#688 -
Fixed a bug where the active tab indicator in
<sl-tab-group>would be misaligned when using disabled tabs #695 - Improved the size of the remove button in
<sl-tag> - Removed Google Analytics from the docs
2.0.0-beta.69
-
Added
web-types.jsonto improve the dev experience for WebStorm/PHPStorm users #328 - Fixed a bug that caused an error when pressing up/down in
<sl-select> -
Fixed a bug that caused
<sl-details>to not show when double clicking the summary while open #662 -
Fixed a bug that prevented the first/last menu item from receiving focus when pressing up/down in
<sl-dropdown> -
Fixed a bug that caused the active tab indicator in
<sl-tab-group>to render incorrectly when used inside an element that animates #671 -
Fixed a bug that allowed values in
<sl-range>to be invalid according to itsmin|max|step#674 - Updated Lit to 2.1.4
- Updated all other dependencies to latest versions
2.0.0-beta.68
- Fixed path aliases in generated files so they’re relative again #669
2.0.0-beta.67
- Fixed a TypeScript config regression introduced in #647
2.0.0-beta.66
- Attempted to fix a bug that prevented types from being generated in the build
2.0.0-beta.65
-
🚨 BREAKING: the
unitproperty of<sl-format-bytes>has changed tobyte | bitinstead ofbytes | bits -
Added
display-labelpart to<sl-select>#650 -
Added
--spacingcustom property to<sl-divider>#664 -
Added
event.detail.sourceto thesl-request-closeevent in<sl-dialog>and<sl-drawer> -
Fixed a bug that caused
<sl-progress-ring>to render the wrong size when--track-widthwas increased #656 -
Fixed a bug that allowed
<sl-details>to open and close when disabled using a screen reader #658 - Fixed a bug in the FormData event polyfill that threw an error in some environments #666
- Implemented stricter linting to improve consistency and reduce errors, which resulted in many small refactors throughout the codebase #647
-
Improved accessibility of
<sl-dialog>and<sl-drawer>by making the title an<h2>and adding a label to the close button - Improved search results in the documentation
-
Refactored
<sl-format-byte>to useIntl.NumberFormatso it supports localization -
Refactored themes so utility styles are no longer injected as
<style>elements to support stricter CSP rules #571 - Restored the nicer animation on
<sl-spinner>and verified it works in Safari - Updated Feather icon example to use Lucide #657
- Updated minimum Node version to 14.17
- Updated Lit to 2.1.2
- Updated to Bootstrap Icons to 1.8.1
- Updated all other dependencies to latest versions
2.0.0-beta.64
-
🚨 BREAKING: removed
<sl-form>because all form components submit with<form>now (learn more) -
🚨 BREAKING: changed
submitattribute totype="submit"on<sl-button> -
🚨 BREAKING: changed the
altattribute tolabelin<sl-avatar>for consistency with other components - Added
role="status"to<sl-spinner> -
Added
valueAsDateandvalueAsNumberproperties to<sl-input>#570 -
Added
start,end, andpanelparts to<sl-split-panel>#639 - Fixed broken spinner animation in Safari #633
-
Fixed an a11y bug in
<sl-tooltip>wherearia-describedbyreferenced an id in the shadow root -
Fixed a bug in
<sl-radio>where tabbing didn’t work properly in Firefox #596 -
Fixed a bug in
<sl-input>where clicking the left/right edge of the control wouldn’t focus it -
Fixed a bug in
<sl-input>where autofill had strange styles #644 - Improved
<sl-spinner>track color when used on various backgrounds -
Improved a11y in
<sl-radio>so VoiceOver announces radios properly in a radio group -
Improved the API for the experimental
<sl-split-panel>component by makingpositionaccept a percentage and adding theposition-in-pixelsattribute -
Refactored
<sl-breadcrumb-item>,<sl-button>,<sl-card>,<sl-dialog>,<sl-drawer>,<sl-input>,<sl-range>,<sl-select>, and<sl-textarea>to use a Reactive Controller for slot detection -
Refactored internal id usage in
<sl-details>,<sl-dialog>,<sl-drawer>, and<sl-dropdown> - Removed
position: relativefrom the common component stylesheet - Updated Lit to 2.1.0
- Updated all other dependencies to latest versions
2.0.0-beta.63
-
🚨 BREAKING: changed the
typeattribute tovariantin<sl-alert>,<sl-badge>,<sl-button>, and<sl-tag>since it’s more appropriate and to disambiguate from othertypeattributes -
🚨 BREAKING: removed
basepart from<sl-divider>to simplify the styling API - Added the experimental
<sl-split-panel>component -
Added
focus()andblur()methods to<sl-select>#625 -
Fixed a bug where setting
tooltipFormatteron<sl-range>in JSX causes React@experimental to error out -
Fixed a bug where clicking on a slotted icon in
<sl-button>wouldn’t submit forms #626 -
Added the
sl-prefix to generated ids for<sl-tab>and<sl-tab-panel> - Refactored
<sl-button>to use Lit’s static expressions to reduce code - Simplified
<sl-spinner>animation
2.0.0-beta.62
-
🚨 BREAKING: changed the
localeattribute tolangin<sl-format-bytes>,<sl-format-date>,<sl-format-number>, and<sl-relative-time>to be consistent with how localization is handled - Added localization support including translations for English, German, German (Switzerland), Spanish, French, Hebrew, Japanese, Dutch, Polish, Portuguese, and Russian translations #419
- CodePen examples will now open in light or dark depending on your current preference
-
Fixed a bug where tag names weren’t being generated in
vscode.html-custom-data.json#593 -
Fixed a bug in
<sl-tooltip>where the tooltip wouldn’t reposition when content changed -
Fixed a bug in
<sl-select>where focusing on a filled control showed the wrong focus ring -
Fixed a bug where setting
valueinitially on<sl-color-picker>didn’t work in React #602 - Updated filled inputs to have the same appearance when focused
- Updated
colordependency from 3.1.3 to 4.0.2 -
Updated
<sl-format-bytes>,<sl-format-date>,<sl-format-number>, and<sl-relative-time>to work like other localized components - Upgraded the status of
<sl-qr-code>from experimental to stable - Updated to Bootstrap Icons to 1.7.2
- Upgraded color to 4.1.0
2.0.0-beta.61
This release improves the dark theme by shifting luminance in both directions, slightly condensing the spectrum. This results in richer colors in dark mode. It also reduces theme stylesheet sizes by eliminating superfluous gray palette variations.
In beta.48, I introduced a change to color tokens that allowed you to access
alpha values at the expense of a verbose, non-standard syntax. After considering feedback from the
community, I’ve decided to revert this change so the rgb() function is no longer required. Many
users reported never using it for alpha, and even more reported having trouble remembering to use
rgb() and that it was causing more harm than good.
Furthermore, both Safari and Firefox have implemented
color-mix()
behind a flag, so access to alpha channels and other capabilities are coming to the browser soon.
If you’re using color tokens in your own stylesheet, simply remove the rgb() to update to this
version.
.your-styles {
/* change this */
color: rgb(var(--sl-color-primary-500));
/* to this */
color: var(--sl-color-primary-500);
}
Thank you for your help and patience with testing Shoelace. I promise, we’re not far from a stable release!
- 🚨 BREAKING: removed blue gray, cool gray, true gray, and warm gray color palettes
-
🚨 BREAKING: removed
--sl-focus-ring-color, and--sl-focus-ring-alpha(use--sl-focus-ringinstead) -
🚨 BREAKING: removed
--sl-surface-baseand--sl-surface-base-alttokens (use the neutral palette instead) - Added experimental
<sl-visually-hidden>component -
Added
clear-iconslot to<sl-select>#591 - Fixed a bug in
<sl-progress-bar>where the label would show in the default slot - Improved the dark theme palette so colors are bolder and don’t appear washed out
-
Improved a11y of
<sl-avatar>by representing it as an image with analt#579 - Improved a11y of the scroll buttons in
<sl-tab-group> - Improved a11y of the close button in
<sl-tab> -
Improved a11y of
<sl-tab-panel>by removing an invalidaria-selectedattribute #579 -
Improved a11y of
<sl-icon>by not using a variation of thenameattribute for labels (use thelabelattribute instead) - Moved
rolefrom the shadow root to the host element in<sl-menu> - Removed redundant
role="menu"in<sl-dropdown> - Slightly faster animations for showing and hiding
<sl-dropdown> - Updated to Bootstrap Icons to 1.7.1
- Upgraded the status of
<sl-mutation-observer>from experimental to stable
2.0.0-beta.60
- Added React examples and CodePen links to all components
-
Changed the
attrin experimental<sl-mutation-observer>to require"*"instead of""to target all attributes -
Fixed a bug in
<sl-progress-bar>where thelabelattribute didn’t set the label -
Fixed a bug in
<sl-rating>that caused disabled and readonly controls to transition on hover - The
panelproperty of<sl-tab>is now reflected - The
nameproperty of<sl-tab-panel>is now reflected
2.0.0-beta.59
- Added React wrappers as first-class citizens
-
Added eye dropper to
<sl-color-picker>when the browser supports the EyeDropper API -
Fixed a bug in
<sl-button-group>where buttons groups with only one button would have an incorrect border radius - Improved the
<sl-color-picker>trigger’s border in dark mode -
Switched clearable icon from
x-circletox-circle-fillto make it easier to recognize - Updated to Bootstrap Icons to 1.7.0
- Updated to Lit 2.0.2
2.0.0-beta.58
This version once again restores the bundled distribution because the unbundled + CDN approach is currently confusing and not working properly. Unbundling the few dependencies Shoelace has is still a goal of the project, but this jsDelivr bug needs to be resolved before we can achieve it.
I sincerely apologize for the instability of the last few beta releases as a result of this effort.
- Added experimental
<sl-animated-image>component -
Added
labelattribute to<sl-progress-bar>and<sl-progress-ring>to improve a11y -
Fixed a bug where the tooltip would show briefly when clicking a disabled
<sl-range> - Fixed a bug that caused a console error when
<sl-range>was used -
Fixed a bug where the
navpart in<sl-tab-group>was on the incorrect element #563 -
Fixed a bug where non-integer aspect ratios were calculated incorrectly in
<sl-responsive-media> -
Fixed a bug in
<sl-range>where settingvaluewouldn’t update the active and inactive portion of the track #572 - Reverted to publishing the bundled dist and removed
/+esmlinks from the docs - Updated to Bootstrap Icons to 1.6.1
2.0.0-beta.57
- Fix CodePen links and CDN links
2.0.0-beta.56
This release is the second attempt at unbundling dependencies. This will be a breaking change only if your
configuration does not support bare module specifiers. CDN users and bundler users will be
unaffected, but note the URLs for modules on the CDN must have the /+esm now.
-
Added the
hoistattribute to<sl-tooltip>#564 - Unbundled dependencies and configured external imports to be packaged with bare module specifiers
2.0.0-beta.55
- Revert unbundling due to issues with the CDN not handling bare module specifiers as expected
2.0.0-beta.54
Shoelace doesn’t have a lot of dependencies, but this release unbundles most of them so you can potentially save some extra kilobytes. This will be a breaking change only if your configuration does not support bare module specifiers. CDN users and bundler users will be unaffected.
-
🚨 BREAKING: renamed the
sl-clearevent tosl-remove, theclear-buttonpart toremove-button, and theclearableproperty toremovablein<sl-tag> - Added the
disabledattribute to<sl-resize-observer> -
Fixed a bug in
<sl-mutation-observer>where settingdisabledinitially didn’t work - Unbundled dependencies and configured external imports to be packaged with bare module specifiers
2.0.0-beta.53
-
🚨 BREAKING: removed
<sl-menu-divider>(use<sl-divider>instead) -
🚨 BREAKING: removed
percentageattribute from<sl-progress-bar>and<sl-progress-ring>(usevalueinstead) -
🚨 BREAKING: switched the default
typeof<sl-tag>fromprimarytoneutral - Added the experimental
<sl-mutation-observer>component - Added the
<sl-divider>component -
Added
--sl-color-neutral-0and--sl-color-neutral-50as early surface tokens to improve the appearance of alert, card, and panels in dark mode - Added the
--sl-panel-border-widthdesign token - Added missing background color to
<sl-details> - Added the
--paddingcustom property to<sl-tab-panel> -
Added the
outlinevariation to<sl-button>#522 -
Added the
filledvariation to<sl-input>,<sl-textarea>, and<sl-select>and supporting design tokens -
Added the
controlpart to<sl-select>so you can target the main control with CSS #538 -
Added a border to
<sl-badge>to improve contrast when drawn on various background colors -
Added
--track-color-activeand--track-color-inactivecustom properties to<sl-range>#550 -
Added the undocumented custom properties
--thumb-size,--tooltip-offset,--track-heighton<sl-range> -
Changed the default
distancein<sl-dropdown>from2to0#538 -
Fixed a bug where
<sl-select>would be larger than the viewport when it had lots of options #544 - Fixed a bug where
<sl-progress-ring>wouldn’t animate in Safari -
Updated the default height of
<sl-progress-bar>from16pxto1remand added a subtle shadow to indicate depth -
Removed the
lit-htmldependency and moved corresponding imports tolit#546
2.0.0-beta.52
-
🚨 BREAKING: changed the
--stroke-widthcustom property of<sl-spinner>to--track-widthfor consistency -
🚨 BREAKING: removed the
sizeandstroke-widthattributes from<sl-progress-ring>so it’s fully customizable with CSS (use the--sizeand--track-widthcustom properties instead) - Added the
--speedcustom property to<sl-spinner> -
Added the
--sizeand--track-widthcustom properties to<sl-progress-ring> -
Added tests for
<sl-badge>#530 -
Fixed a bug where
<sl-tab>wasn’t using a border radius token #523 - Fixed a bug in the Remix Icons example where some icons would 404 #528
- Updated
<sl-progress-ring>to use only CSS for styling - Updated
<sl-spinner>to use an SVG and improved the indicator animation - Updated to Lit 2.0 and lit-html 2.0 🔥
2.0.0-beta.51
A number of users had trouble counting characters that repeat, so this release improves design token
patterns so that “t-shirt sizes” are more accessible. For example, --sl-font-size-xxx-large has
become --sl-font-size-3x-large. This change applies to all design tokens that use this scale.
-
🚨 BREAKING: all t-shirt size design tokens now use
2x,3x,4xinstead ofxx,xxx,xxxx - Added missing
--sl-focus-ring-*tokens to dark theme - Added an “Importing” section to all components with copy/paste code to make cherry picking easier
- Improved the documentation search with a custom plugin powered by Lunr
- Improved the
--sl-shadow-x-smallelevation - Improved visibility of elevations and overlays in dark theme
-
Reduced the size of
<sl-color-picker>slightly to better accommodate mobile devices -
Removed
<sl-icon>dependency from<sl-color-picker>and improved the copy animation
2.0.0-beta.50
- Added
<sl-breadcrumb>and<sl-breadcrumb-item>components -
Added
--sl-letter-spacing-denser,--sl-letter-spacing-looser,--sl-line-height-denser, and--sl-line-height-looserdesign tokens -
Fixed a bug where form controls would error out when the value was set to
undefined#513
2.0.0-beta.49
This release changes the way focus states are applied to elements. In browsers that support
:focus-visible, it will be used. In unsupportive browsers (currently only Safari), :focus will be used instead. This means the browser will determine whether a focus ring
should be shown based on how the user interacts with the page.
This release also fixes a critical bug in the color scale where --sl-color-neutral-0 and
--sl-color-neutral-1000 were reversed.
-
🚨 BREAKING: fixed a bug where
--sl-color-neutral-0and--sl-color-neutral-1000were inverted (swap them to update) -
🚨 BREAKING: removed the
no-fieldsetproperty from<sl-radio-group>(fieldsets are now hidden by default; usefieldsetto show them) -
🚨 BREAKING: removed
--focus-ringcustom property from<sl-input>,<sl-select>,<sl-tab>for consistency with other form controls - Added
--swatch-sizecustom property to<sl-color-picker> - Added
dateto<sl-input>as a supportedtype -
Added the
--sl-focus-ringdesign token for a more convenient way to apply focus ring styles - Adjusted elevation tokens to use neutral in light mode and black in dark mode
- Adjusted
--sl-overlay-background-colorin dark theme to be black instead of gray -
Fixed a bug in
<sl-color-picker>where the opacity slider wasn’t showing the current color - Fixed a bug where Edge in Windows would show the native password toggle next to the custom password toggle #508
-
Fixed a bug where pressing up/down in
<sl-tab-group>didn’t select the next/previous tab in vertical placements - Improved size of
<sl-color-picker> - Improved icon contrast in
<sl-input> - Improved contrast of
<sl-switch> - Improved
:focus-visiblebehavior in many components - Removed elevation from
<sl-color-picker>when rendered inline -
Removed custom
:focus-visiblelogic in favor of a directive that outputs:focus-visibleor:focusdepending on browser support - Updated to Lit 2.0.0-rc.3
- Updated to lit-html 2.0.0-rc.4
2.0.0-beta.48
This release improves theming by offering both light and dark themes that can be used autonomously. It also improves contrast in most components, adds a variety of new color primitives, and changes the way color tokens are consumed.
Previously, color tokens were in hexadecimal format. Now, Shoelace now uses an R G B format
that requires you to use the rgb() function in your CSS.
.example {
/* rgb() is required now */
color: var(--sl-color-neutral-500);
}
This is more verbose than previous versions, but it has the advantage of letting you set the alpha channel of any color token.
.example-with-alpha {
/* easily adjust opacity for any color token */
color: rgb(var(--sl-color-neutral-500) / 50%);
}
This change applies to all design tokens that implement a color. Refer to the color tokens page for more details.
-
🚨 BREAKING: all design tokens that implement colors have been converted to
R G Band must be used with thergb()function -
🚨 BREAKING: removed
--sl-color-black|whitecolor tokens (use--sl-color-neutral-0|1000instead) -
🚨 BREAKING: removed
--sl-color-primary|success|warning|info|danger-textdesign tokens (use theme or primitive colors instead) -
🚨 BREAKING: removed
infovariant from<sl-alert>,<sl-badge>,<sl-button>, and<sl-tag>(useneutralinstead) -
🚨 BREAKING: removed
--sl-color-info-*design token (use--sl-color-neutral-*instead) - 🚨 BREAKING: renamed
dist/themes/base.csstodist/themes/light.css -
🚨 BREAKING: removed
--sl-focus-ring-color-primarytokens (use color tokens and--sl-focus-ring-width|alphainstead) -
🚨 BREAKING: removed
--tabs-border-colorfrom<sl-tab-group>(use--track-colorinstead) -
🚨 BREAKING: changed the default value for
effecttononein<sl-skeleton>(usesheento restore the original behavior) - Added new color primitives to the base set of design tokens
- Added
--sl-color-*-950swatches to all color palettes -
Added a console error that appears when menu items have duplicate values in
<sl-select> - Added CodePen link to code examples
-
Added
prefixandsuffixslots to<sl-select>#501 - Added
--indicator-colorcustom property to<sl-tab-group> - Exposed base and dark stylesheets so they can be imported via JavaScript #438
-
Fixed a bug in
<sl-menu>where pressing Enter after using type to select would result in the wrong value -
Fixed a bug in
<sl-radio-group>where clicking a radio button would cause the wrong control to be focused -
Fixed a bug in
<sl-button>and<sl-icon-button>where an unintendedrefattribute was present - Fixed a bug in the focus-visible utility that failed to respond to mouseup events
- Fixed a bug where clicking on a menu item would persist its hover/focus state
-
Fixed a bug in
<sl-select>where it would erroneously intercept important keyboard shortcuts #504 - Improved contrast throughout all components #128
-
Refactored thumb position logic in
<sl-switch>#490 - Reworked the dark theme to use an inverted + shifted design token approach instead of component-specific selectors
2.0.0-beta.47
This release improves how component dependencies are imported. If you’ve been cherry picking, you no longer need to import component dependencies manually. This significantly improves developer experience, making Shoelace even easier to use. For transparency, component dependencies will continue to be listed in the docs.
- Added “Reflects” column to the properties table
- Dependencies are now automatically imported for all components
-
Fixed a bug where tabbing into
<sl-radio-group>would not always focus the checked radio - Fixed a bug in component styles that prevented the box sizing reset from being applied
-
Fixed a regression in
<sl-color-picker>where dragging the grid handle wasn’t smooth - Fixed a bug where slot detection could incorrectly match against slots of child elements #481
-
Fixed a bug in
<sl-input>where focus would move to the end of the input when typing in Safari #480 - Improved base path utility logic
2.0.0-beta.46
This release improves the developer experience of <sl-animation>. Previously, an
animation was assumed to be playing unless the pause attribute was set. This behavior has been
reversed and pause has been removed. Now, animations will not play until the new
play attribute is applied.
This is a lot more intuitive and makes it easier to activate animations imperatively. In addition, the
play attribute is automatically removed automatically when the animation finishes or cancels,
making it easier to restart finite animations. Lastly, the animation’s timing is now accessible through the
new currentTime property instead of getCurrentTime() and
setCurrentTime().
In addition, Shoelace no longer uses Sass. Component styles now use Lit’s template literal styles and theme files use pure CSS.
-
🚨 BREAKING: removed the
pauseattribute from<sl-animation>(useplayto start and stop the animation instead) -
🚨 BREAKING: removed
getCurrentTime()andsetCurrentTime()from<sl-animation>(use thecurrentTimeproperty instead) -
🚨 BREAKING: removed the
close-on-selectattribute from<sl-dropdown>(usestay-open-on-selectinstead) -
Added the
currentTimeproperty to<sl-animation>to control the current time without methods -
Fixed a bug in
<sl-range>where the tooltip wasn’t showing in Safari #477 -
Fixed a bug in
<sl-menu>where pressing Enter in a menu didn’t work with click handlers -
Reworked
<sl-menu>and<sl-menu-item>to use a roving tab index and improve keyboard accessibility - Reworked tabbable logic to be more performant #466
- Switched component stylesheets from Sass to Lit’s template literal styles
- Switched theme stylesheets from Sass to CSS
2.0.0-beta.45
This release changes the way component metadata is generated. Previously, the project used TypeDoc to
analyze components and generate a very large file with type data. The data was then parsed and converted to
an easier-to-consume file called metadata.json. Alas, TypeDoc is expensive to run and the
metadata format wasn’t standard.
Thanks to an amazing effort by
Pascal Schilp, the world has a simpler, faster way to gather metadata using the
Custom Elements Manifest Analyzer. Not only is this tool faster, but the data follows the evolving custom-elements.json format.
This is exciting because a standard format for custom elements opens the door for many potential uses,
including documentation generation, framework adapters, IDE integrations, third-party uses, and more.
Check out Pascal’s great article
for more info about custom-elements.json and the new analyzer.
The docs have been updated to use the new custom-elements.json file. If you’re relying on the
old metadata.json file for any purpose, this will be a breaking change for you.
-
🚨 BREAKING: removed the
sl-overlay-clickevent from<sl-dialog>and<sl-drawer>(usesl-request-closeinstead) #471 - 🚨 BREAKING: removed
metadata.json(usecustom-elements.jsoninstead) - Added
custom-elements.jsonfor component metadata -
Added
sl-request-closeevent to<sl-dialog>and<sl-drawer> - Added
dialog.denyCloseanddrawer.denyCloseanimations -
Fixed a bug in
<sl-color-picker>where settingvalueimmediately wouldn’t trigger an update -
Fixed a bug in
<sl-dialog>and<sl-drawer>where settingopeninitially didn’t set a focus trap -
Fixed a bug that resulted in form controls having incorrect validity when
disabledwas initially set #473 - Fixed a bug in the docs that caused the metadata file to be requested twice
- Fixed a bug where tabbing out of a modal would cause the browser to lag #466
- Updated the docs to use the new
custom-elements.jsonfor component metadata
2.0.0-beta.44
-
🚨 BREAKING: all
invalidprops on form controls now reflect validity before interaction #455 -
Allow
nullto be passed to disable animations insetDefaultAnimation()andsetAnimation() - Converted build scripts to ESM
- Fixed a bug in
<sl-checkbox>whereinvaliddid not update properly -
Fixed a bug in
<sl-dropdown>where akeydownlistener wasn’t cleaned up properly -
Fixed a bug in
<sl-select>wheresl-blurwas emitted prematurely #456 -
Fixed a bug in
<sl-select>where no selection withmultipleresulted in an incorrect value #457 -
Fixed a bug in
<sl-select>wheresl-changewas emitted immediately after connecting to the DOM #458 - Fixed a bug in
<sl-select>where non-printable keys would cause the menu to open -
Fixed a bug in
<sl-select>whereinvalidwas not always updated properly -
Reworked the
@watchdecorator to useupdateinstead ofupdatedresulting in better performance and flexibility
2.0.0-beta.43
- Added
?to optional arguments in methods tables in the docs -
Added the
scrollPosition()method to<sl-textarea>to get/set scroll position -
Added initial tests for
<sl-dialog>,<sl-drawer>,<sl-dropdown>, and<sl-tooltip> -
Fixed a bug in
<sl-tab-group>where scrollable tab icons were not displaying correctly -
Fixed a bug in
<sl-dialog>and<sl-drawer>where preventing clicks on the overlay no longer worked as described #452 -
Fixed a bug in
<sl-dialog>and<sl-drawer>where setting initial focus no longer worked as described #453 -
Fixed a bug in
<sl-card>where theslotchangelistener wasn’t attached correctly #454 - Fixed lifecycle bugs in a number of components #451
-
Removed
fill: bothfrom internal animate utility so styles won’t “stick” by default #450
2.0.0-beta.42
This release addresses an issue with the open attribute no longer working in a number of
components, as a result of the changes in beta.41. It also removes a small but controversial feature that
complicated show/hide logic and led to a poor experience for developers and end users.
There are two ways to show/hide affected components: by calling show() | hide() and by toggling
the open prop. Previously, it was possible to call event.preventDefault() in an
sl-show | sl-hide handler to stop the component from showing/hiding. The problem becomes
obvious when you set el.open = false, the event gets canceled, and in the next cycle
el.open has reverted to true. Not only is this unexpected, but it also doesn’t
play nicely with frameworks. Additionally, this made it impossible to await
show() | hide() since there was a chance they’d never resolve.
Technical reasons aside, canceling these events seldom led to a good user experience, so the decision was
made to no longer allow sl-show | sl-hide to be cancelable.
- 🚨 BREAKING:
sl-showandsl-hideevents are no longer cancelable - Added Iconoir example to the icon docs
- Added Web Test Runner
- Added initial tests for
<sl-alert>and<sl-details> -
Changed the
cancelabledefault tofalsefor the internal@eventdecorator -
Fixed a bug where toggling
openstopped working in<sl-alert>,<sl-dialog>,<sl-drawer>,<sl-dropdown>, and<sl-tooltip> -
Fixed a bug in
<sl-range>where setting a value outside the defaultminormaxwould clamp the value #448 -
Fixed a bug in
<sl-dropdown>where placement wouldn’t adjust properly when shown #447 -
Fixed a bug in the internal
shimKeyframesHeightAutoutility that caused<sl-details>to measure heights incorrectly #445 - Fixed a number of imports that should have been type imports
- Updated Lit to 2.0.0-rc.2
- Updated esbuild to 0.12.4
2.0.0-beta.41
This release changes how components animate. In previous versions, CSS transitions were used for most
show/hide animations. Transitions are problematic due to the way transitionend works. This
event fires once per transition, and it’s impossible to know which transition to look for when
users can customize any possible CSS property. Because of this, components previously required the
opacity property to transition. If a user were to prevent opacity from
transitioning, the component wouldn’t hide properly and the sl-after-show|hide events would
never emit.
CSS animations, on the other hand, have a more reliable animationend event. Alas,
@keyframes don’t cascade and can’t be injected into a shadow DOM via CSS, so there would be no
good way to customize them.
The most elegant solution I found was to use the Web Animations API, which offers more control over animations at the expense of customizations being done in JavaScript. Fortunately, through the Animation Registry, you can customize animations globally and/or per component with a minimal amount of code.
-
🚨 BREAKING: changed
leftandrightplacements tostartandendin<sl-drawer> -
🚨 BREAKING: changed
leftandrightplacements tostartandendin<sl-tab-group> -
🚨 BREAKING: removed
--hide-duration,--hide-timing-function,--show-duration, and--show-timing-functioncustom properties from<sl-tooltip>(use the Animation Registry instead) - Added the Animation Registry
-
Fixed a bug where removing
<sl-dropdown>from the DOM and adding it back destroyed the popover reference #443 -
Updated animations for
<sl-alert>,<sl-dialog>,<sl-drawer>,<sl-dropdown>, and<sl-tooltip>to use the Animation Registry instead of CSS transitions - Improved a11y by respecting
prefers-reduced-motionfor all show/hide animations -
Improved
--show-delayand--hide-delaybehavior in<sl-tooltip>so they only apply on hover - Removed the internal popover utility
2.0.0-beta.40
-
🚨 BREAKING: renamed
<sl-responsive-embed>to<sl-responsive-media>and added support for images and videos #436 - Fixed a bug where setting properties before an element was defined would render incorrectly #425
- Fixed a bug that caused all modules to be imported when cherry picking certain components #439
-
Fixed a bug where the scrollbar would reposition
<sl-dialog>on hide causing it to jump #424 - Fixed a bug that prevented the project from being built in a Windows environment
- Improved a11y in
<sl-progress-ring> -
Removed
src/utilities/index.tsto prevent tree-shaking confusion (please import utilities directly from their respective modules) - Removed global
[hidden]styles so they don’t affect anything outside of components - Updated to Bootstrap Icons 1.5.0
-
Updated React docs to use
@shoelace-style/react - Updated NextJS docs #434
- Updated TypeScript to 4.2.4
2.0.0-beta.39
- Added experimental
<sl-qr-code>component -
Added
systemicon library and updated all components to use this instead of the default icon library #420 - Updated to esbuild 0.8.57
- Updated to Lit 2.0.0-rc.1 and lit-html 2.0.0-rc.2
2.0.0-beta.38
-
🚨 BREAKING:
<sl-radio>components must be located inside an<sl-radio-group>for proper accessibility #218 -
Added
<sl-radio-group>component #218 -
Added
--header-spacing,--body-spacing, and--footer-spacingcustom properties to<sl-drawer>and<sl-dialog>#409 -
Fixed a bug where
<sl-menu-item>prefix and suffix slots wouldn’t always receive the correct spacing -
Fixed a bug where
<sl-badge>used--sl-color-whiteinstead of the correct design tokens #407 -
Fixed a bug in
<sl-dialog>and<sl-drawer>where the escape key would cause parent components to close -
Fixed a race condition bug in
<sl-icon>#410 - Improved focus trap behavior in
<sl-dialog>and<sl-drawer> -
Improved a11y in
<sl-dialog>and<sl-drawer>by restoring focus to trigger on close -
Improved a11y in
<sl-radio>with Windows high contrast mode #215 - Improved a11y in
<sl-select>by preventing the chevron icon from being announced -
Internal: removed the
optionsargument from the modal utility as focus trapping is now handled internally
2.0.0-beta.37
-
Added
click()method to<sl-checkbox>,<sl-radio>, and<sl-switch> -
Added the
activationattribute to<sl-tab-group>to allow for automatic and manual tab activation - Added
npm run create <tag>script to scaffold new components faster -
Fixed a bug in
<sl-tooltip>where events weren’t properly cleaned up on disconnect -
Fixed a bug in
<sl-tooltip>where they wouldn’t display after togglingdisabledoff and on again #391 -
Fixed a bug in
<sl-details>whereshow()andhide()would toggle the control when disabled -
Fixed a bug in
<sl-color-picker>where settingvaluewouldn’t update the control -
Fixed a bug in
<sl-tab-group>where tabs that are initially disabled wouldn’t receive the indicator on activation #403 -
Fixed incorrect event names for
sl-after-showandsl-after-hidein<sl-details> - Improved a11y for disabled buttons that are rendered as links
-
Improved a11y for
<sl-button-group>by adding the correctroleattribute -
Improved a11y for
<sl-input>,<sl-range>,<sl-select>, and<sl-textarea>so labels and helper text are read properly by screen readers -
Removed
sl-show,sl-hide,sl-after-show,sl-after-hideevents from<sl-color-picker>(the color picker’s visibility cannot be controlled programmatically so these shouldn’t have been exposed; the dropdown events now bubble up so you can listen for those instead) - Reworked
<sl-button-group>so it doesn’t require light DOM styles
2.0.0-beta.36
-
🚨 BREAKING: renamed
setFocus()tofocus()in button, checkbox, input, menu item, radio, range, rating, select, switch, and tab -
🚨 BREAKING: renamed
removeFocus()toblur()in button, checkbox, input, menu item, radio, range, rating, select, switch, and tab - Added
click()method to<sl-button> -
Fixed a bug where toggling
openon<sl-drawer>would skip the transition - Fixed a bug where
<sl-color-picker>could be opened when disabled -
Fixed a bug in
<sl-color-picker>that caused erratic slider behaviors #388 -
Fixed a bug where
<sl-details>wouldn’t always render the correct height when open initially #357 - Renamed
components.jsontometadata.json - Updated to the prerelease versions of LitElement and lit-html
- Updated to Bootstrap Icons 1.4.1
2.0.0-beta.35
-
Fixed a bug in
<sl-animation>wheresl-cancelandsl-finishevents would never fire - Fixed a bug where
<sl-alert>wouldn’t always transition properly -
Fixed a bug where using
<sl-menu>inside a shadow root would break keyboard selections #382 -
Fixed a bug where toggling
multiplein<sl-select>would lead to a stale display label -
Fixed a bug in
<sl-tab-group>where changingplacementcould result in the active tab indicator being drawn a few pixels off -
Fixed a bug in
<sl-button>where link buttons threw an error on focus, blur, and click - Improved
@watchdecorator to run after update instead of during -
Updated
<sl-menu-item>checked icon tocheckinstead ofcheck2 - Upgraded the status of
<sl-resize-observer>from experimental to stable
2.0.0-beta.34
This release changes the way components are registered if you’re
cherry picking or
using a bundler. This recommendation came from the
LitElement team and simplifies Shoelace’s dependency graph. It also eliminates the need to call a
register() function before using each component.
From now on, importing a component will register it automatically. The caveat is that bundlers may not tree
shake the library properly if you import from @shoelace-style/shoelace, so the recommendation
is to import components and utilities from their corresponding files instead.
- 🚨 BREAKING: removed
all.shoelace.js(useshoelace.jsinstead) -
🚨 BREAKING: component modules now have a side effect, so bundlers may not tree shake properly when
importing from
@shoelace-style/shoelace(see the installation page for more details and how to update) - Added
sl-clearevent to<sl-select> -
Fixed a bug where dynamically changing menu items in
<sl-select>would cause the display label to be blank #374 -
Fixed a bug where setting the
valueattribute or property on<sl-input>and<sl-textarea>would trigger validation too soon - Fixed the margin in
<sl-menu-label>to align with menu items -
Fixed
autofocusattributes in<sl-input>and<sl-textarea> -
Improved types for
autocapitalizein<sl-input>and<sl-textarea> -
Reverted the custom
@tagdecorator in favor of@customElementto enable auto-registration
2.0.0-beta.33
-
Fixed a bug where link buttons could have incorrect
target,download, andrelprops -
Fixed
aria-labelandaria-labelledbyprops in<sl-dialog>and<sl-drawer> - Fixed
tabindexattribute in<sl-menu> - Fixed a bug in
<sl-select>where tags would always render as pills -
Fixed a bug in
<sl-button>where callingsetFocus()would throw an error
2.0.0-beta.32
- Added tag name maps so TypeScript can identify Shoelace elements #371
-
Fixed a bug where the active tab indicator wouldn’t render properly on tabs styled with
flex-end#355 -
Fixed a bug where
sl-changewasn’t emitted by<sl-checkbox>or<sl-switch>#370 -
Fixed a bug where some props weren’t being watched correctly in
<sl-alert>and<sl-color-picker> - Improved
@watchdecorator so watch handlers don’t run before the first render - Removed guards that were added due to previous watch handler behavior
2.0.0-beta.31
-
Add touch support to
<sl-rating>#362 -
Fixed a bug where the
openattribute on<sl-details>would prevent it from opening #357 - Fixed event detail type parsing so component class names are shown instead of
default
2.0.0-beta.30
- Fix default exports for all components so cherry picking works again #365
- Revert FOUC base style because it interferes with some framework and custom element use cases
2.0.0-beta.29
This release migrates component implementations from Shoemaker to LitElement. Due to feedback from the community, Shoelace will rely on a more heavily tested library for component implementations. This gives you a more solid foundation and reduces my maintenance burden. Thank you for all your comments, concerns, and encouragement! Aside from that, everything else from beta.28 still applies plus the following.
-
🚨 BREAKING: removed the
symbolproperty from<sl-rating>and reverted togetSymbolfor optimal flexibility -
Added
vscode.html-custom-data.jsonto the build to support IntelliSense (see the usage section for details) - Added a base style to prevent FOUC before components are defined
- Fixed bug where TypeScript types weren’t being generated #364
- Improved vertical padding in
<sl-tooltip> - Moved chunk files into a separate folder
- Reverted menu item active styles
- Updated esbuild to 0.8.54
2.0.0-beta.28
This release includes a major under the hood overhaul of the library and how it’s distributed. Until now, Shoelace was developed with Stencil. This release moves to a lightweight tool called Shoemaker, a homegrown utility that provides declarative templating and data binding while reducing the boilerplate required for said features.
This change in tooling addresses a number of longstanding bugs and limitations. It also gives us more control over the library and build process while streamlining development and maintenance. Instead of two different distributions, Shoelace now offers a single, standards-compliant collection of ES modules. This may affect how you install and use the library, so please refer to the installation page for details.
Due to the large number of internal changes, I would consider this update to be less stable than previous ones. If you’re using Shoelace in a production app, consider holding off until the next beta to allow for more exhaustive testing from the community. Please report any bugs you find on the issue tracker.
The component API remains the same except for the changes noted below. Thanks for your patience as I work diligently to make Shoelace more stable and future-proof. 🙌
- 🚨 BREAKING: removed the custom elements bundle (you can import ES modules directly)
-
🚨 BREAKING: removed
getAnimationNames()andgetEasingNames()methods from<sl-animation>(you can import them fromutilities/animation.jsinstead) -
🚨 BREAKING: removed the
<sl-icon-library>component since it required imperative initialization (you can import theregisterIconLibrary()function fromutilities/icon-library.jsinstead) -
🚨 BREAKING: removed the experimental
<sl-theme>component due to technical limitations (you should set thesl-theme-{name}class on the<body>instead) -
🚨 BREAKING: moved the base stylesheet from
dist/shoelace.csstodist/themes/base.css -
🚨 BREAKING: moved
iconsintoassets/iconsto make future assets easier to colocate -
🚨 BREAKING: changed
getSymbolproperty in<sl-rating>tosymbol(it now accepts a string or a function that returns an icon name) -
🚨 BREAKING: renamed
setAssetPath()tosetBasePath()and added the ability to set the library’s base path with adata-shoelaceattribute (setBasePath()is exported fromutilities/base-path.js) -
Fixed
minandmaxtypes in<sl-input>to allow numbers and strings #330 -
Fixed a bug where
<sl-checkbox>,<sl-radio>, and<sl-switch>controls would shrink with long labels #325 -
Fixed a bug in
<sl-select>where the dropdown menu wouldn’t reposition when the box resized #340 - Fixed a bug where ignoring clicks and clicking the overlay would prevent the escape key from closing the dialog/drawer #344
-
Removed the lazy loading dist (importing
shoelace.jswill load and register all components now) - Switched from Stencil to Shoemaker
- Switched to a custom build powered by esbuild
- Updated to Bootstrap Icons 1.4.0
2.0.0-beta.27
-
Added
handle-iconslot to<sl-image-comparer>#311 -
Added
labelandhelpTextprops and slots to<sl-range>#318 - Added “Integrating with NextJS” tutorial to the docs, courtesy of crutchcorn
-
Added
contentslot to<sl-tooltip>#322 - Fixed a bug in
<sl-select>where removing a tag would toggle the dropdown -
Fixed a bug in
<sl-input>and<sl-textarea>where the input might not exist when the value watcher is called #313 -
Fixed a bug in
<sl-details>where hidden elements would receive focus when tabbing #323 -
Fixed a bug in
<sl-icon>wheresl-errorwould only be emitted for network failures #326 - Reduced the default line-height for
<sl-tooltip> - Updated
<sl-menu-item>focus styles - Updated
<sl-select>so tags will wrap whenmultipleis true - Updated to Stencil 2.4.0
2.0.0-beta.26
-
🚨 BREAKING: Fixed animations bloat
- Removed ~400 baked-in Animista animations because they were causing ~200KB of bloat (they can still be used with custom keyframes)
-
Reworked animations into a separate module (
@shoelace-style/animations) so it’s more maintainable and animations are sync with the latest version of animate.css -
Animation and easing names are now camelCase (e.g.
easeInOutinstead ofease-in-out)
- Added initial E2E tests #169
-
Added the
FocusOptionsargument to all components that have asetFocus()method -
Added
sl-initial-focusevent to<sl-dialog>and<sl-drawer>so focus can be customized to a specific element -
Added
close-buttonpart to<sl-tab>so the close button can be customized -
Added
scroll-buttonpart to<sl-tab-group>so the scroll buttons can be customized -
Fixed a bug where
sl-hidewould be emitted twice when closing an alert withhide() -
Fixed a bug in
<sl-color-picker>where the toggle button was smaller than the preview button in Safari -
Fixed a bug in
<sl-tab-group>where activating a nested tab group didn’t work properly #299 - Fixed a bug in
<sl-tab-group>where removing tabs would throw an error -
Fixed a bug in
<sl-alert>,<sl-dialog>,<sl-drawer>,<sl-select>, and<sl-tag>where the close button’s base wasn’t exported so it couldn’t be styled -
Removed
texttype from<sl-badge>as it was erroneously copied and never had styles -
Updated
<sl-tab-group>so theactiveproperty is reflected to its attribute - Updated the docs to show dependencies instead of dependents which is much more useful when working with the custom elements bundle
- Updated to Bootstrap Icons 1.3.0
2.0.0-beta.25
-
🚨 BREAKING: Reworked color tokens
- Theme colors are now inspired by Tailwind’s professionally-designed color palette
- Color token variations now range from 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
- Color token variations were inverted, e.g. 50 is lightest and 950 is darkest
- All component styles were adapted to use the new color tokens, but visual changes are subtle
- The dark theme was adapted use the new color tokens
- HSL is no longer used because it is not perceptually uniform (this may be revisited when all browsers support LCH colors)
-
🚨 BREAKING: Refactored
<sl-select>to improve accessibility #216-
Removed the internal
<sl-input>because it was causing problems with a11y and virtual keyboards - Removed
input,prefixandsuffixparts
-
Removed the internal
-
🚨 BREAKING: Removed
copy-buttonpart from<sl-color-picker>since copying is now done by clicking the preview -
Added
getFormattedValue()method to<sl-color-picker>so you can retrieve the current value in any format - Added visual separators between solid buttons in
<sl-button-group> -
Added
help-textattribute to<sl-input>,<sl-textarea>, and<sl-select> -
Fixed a bug where moving the mouse while
<sl-dropdown>is closing would remove focus from the trigger - Fixed a bug where
<sl-menu-item>didn’t set a default color in the dark theme - Fixed a bug where
<sl-color-picker>preview wouldn’t update in Safari -
Fixed a bug where removing an icon’s
nameorsrcwouldn’t remove the previously rendered SVG #285 - Fixed a bug where disabled link buttons didn’t appear disabled
- Improved button spacings and added split button example
- Improved elevation tokens in dark theme
-
Improved accessibility in
<sl-tooltip>by allowing escape to dismiss it #219 -
Improved slot detection in
<sl-card>,<sl-dialog>, and<sl-drawer> -
Made
@types/resize-observer-browsera dependency so users don’t have to install it manually -
Refactored internal label + help text logic into a functional component used by
<sl-input>,<sl-textarea>, and<sl-select> -
Removed
sl-blurandsl-focusevents from<sl-menu>since menus can’t have focus as of 2.0.0-beta.22 - Updated
<sl-spinner>so the indicator is more obvious - Updated to Bootstrap Icons 1.2.2
2.0.0-beta.24
- Added
<sl-format-date>component -
Added
indeterminatestate to<sl-progress-bar>#274 -
Added
--track-color,--indicator-color, and--label-colorto<sl-progress-bar>#276 -
Added
allow-scriptsattribute to<sl-include>#280 -
Fixed a bug where
<sl-menu-item>color variable was incorrect #272 -
Fixed a bug where
<sl-dialog>and<sl-drawer>would emit thesl-hideevent twice #275 -
Fixed a bug where calling
event.preventDefault()on certain form elements wouldn’t prevent<sl-form>from submitting #277 - Fixed drag handle orientation in
<sl-image-comparer> - Restyled
<sl-spinner>so the track is visible and the indicator is smaller. -
Removed
resize-observer-polyfillin favor of@types/resize-observer-browsersince all target browsers supportResizeObserver -
Upgraded the status of
<sl-form>,<sl-image-comparer>, and<sl-include>from experimental to stable
2.0.0-beta.23
- Added
<sl-format-number>component - Added
<sl-relative-time>component - Added
closableattribute to<sl-tab> - Added experimental
<sl-resize-observer>utility - Added experimental
<sl-theme>utility and updated theming documentation - Fixed a bug where
<sl-menu-item>wouldn’t render properly in the dark theme - Fixed a bug where
<sl-select>would show an autocomplete menu - Improved placeholder contrast in dark theme
- Updated to Bootstrap Icons 1.1.0
- Updated to Stencil 2.3.0
2.0.0-beta.22
-
🚨 BREAKING: Refactored
<sl-menu>and<sl-menu-item>to improve accessibility by using proper focus states #217-
Moved
tabindexfrom<sl-menu>to<sl-menu-item> -
Removed the
activeattribute from<sl-menu-item>because synthetic focus states are bad for accessibility -
Removed the
sl-activateandsl-deactivateevents from<sl-menu-item>(listen forfocusandblurinstead) - Updated
<sl-select>so keyboard navigation still works
-
Moved
-
Added
no-scroll-controlsattribute to<sl-tab-group>#253 -
Fixed a bug where setting
openinitially wouldn’t show<sl-dialog>or<sl-drawer>#255 - Fixed a bug where
disabledcould be set when buttons are rendered as links -
Fixed a bug where hoisted dropdowns would render in the wrong position when placed inside
<sl-dialog>#252 -
Fixed a bug where boolean aria attributes didn’t explicitly set
true|falsestring values in the DOM -
Fixed a bug where
aria-describedbywas never set on tooltip targets in<sl-tooltip> -
Fixed a bug where setting
positionon<sl-image-comparer>wouldn’t update the divider’s position -
Fixed a bug where the check icon was announced to screen readers in
<sl-menu-item> -
Improved
<sl-icon-button>accessibility by encouraging proper use oflabeland hiding the internal icon from screen readers #220 -
Improved
<sl-dropdown>accessibility by attachingaria-haspopupandaria-expandedto the slotted trigger -
Refactored position logic to remove an unnecessary state variable in
<sl-image-comparer> -
Refactored design tokens to use
reminstead ofpxfor input height and spacing #221 - Removed
console.logfrom modal utility - Updated to Stencil 2.2.0
2.0.0-beta.21
-
Added
labelslot to<sl-input>,<sl-select>, and<sl-textarea>#248 - Added
labelslot to<sl-dialog>and<sl-drawer> - Added experimental
<sl-include>component - Added status code to the
sl-errorevent in<sl-icon> -
Fixed a bug where initial transitions didn’t show in
<sl-dialog>and<sl-drawer>#247 - Fixed a bug where indeterminate checkboxes would maintain the indeterminate state when toggled
- Fixed a bug where concurrent active modals (i.e. dialog, drawer) would try to steal focus from each other
-
Improved
<sl-color-picker>grid and slider handles #246 - Refactored
<sl-icon>request logic and removed unused cache map -
Reworked show/hide logic in
<sl-alert>,<sl-dialog>, and<sl-drawer>to not use reflow hacks and thehiddenattribute -
Reworked slot logic in
<sl-card>,<sl-dialog>, and<sl-drawer> - Updated to Popper 2.5.3 to address a fixed position bug in Firefox
2.0.0-beta.20
- 🚨 BREAKING: Transformed all Shoelace events to lowercase (details)
- Added support for dropdowns and non-icon elements to
<sl-input> - Added
spellcheckattribute to<sl-input> - Added
<sl-icon-library>to allow custom icon library registration -
Added
libraryattribute to<sl-icon>and<sl-icon-button> - Added “Integrating with Rails” tutorial to the docs, courtesy of ParamagicDev
-
Fixed a bug where
<sl-progress-ring>rendered incorrectly when zoomed in Safari #227 -
Fixed a bug where tabbing into slotted elements closes
<sl-dropdown>when used in a shadow root #223 -
Fixed a bug where scroll anchoring caused undesirable scrolling when
<sl-details>are grouped
Shoelace events were updated to use a lowercase, kebab-style naming convention. Instead of event names such
as slChange and slAfterShow, you’ll need to use sl-change and
sl-after-show now.
This change was necessary to address a critical issue in frameworks that use DOM templates with declarative
event bindings such as <sl-button @slChange="handler">. Due to HTML’s case-insensitivity,
browsers translate attribute names to lowercase, turning @slChange into @slchange,
making it impossible to listen to slChange.
While declarative event binding is a non-standard feature, not supporting it would make Shoelace much harder to use in popular frameworks. To accommodate those users and provide a better developer experience, we decided to change the naming convention while Shoelace is still in beta.
The following pages demonstrate why this change was necessary.
2.0.0-beta.19
-
Added
input,label,prefix,clear-button,suffix,help-textexported parts to<sl-select>to make the input customizable - Added toast notifications through the
toast()method on<sl-alert> -
Fixed a bug where mouse events would bubble up when
<sl-button>was disabled, causing tooltips to erroneously appear -
Fixed a bug where pressing space would open and immediately close
<sl-dropdown>panels in Firefox - Fixed a bug where
<sl-tooltip>would throw an error on init - Fixed a bug in custom keyframes animation example
- Refactored clear logic in
<sl-input>
2.0.0-beta.18
- Added
nameandinvalidattribute to<sl-color-picker> - Added support for form submission and validation to
<sl-color-picker> - Added touch support to demo resizers in the docs
- Added
<sl-responsive-embed>component -
Fixed a bug where swapping an animated element wouldn’t restart the animation in
<sl-animation> - Fixed a bug where the cursor was incorrect when
<sl-select>was disabled -
Fixed a bug where
slblurandslfocuswere emitted twice in<sl-select> - Fixed a bug where clicking on
<sl-menu>wouldn’t focus it - Fixed a bug in the popover utility where
onAfterShowwould fire too soon -
Fixed a bug where
bottomandrightplacements didn’t render properly in<sl-tab-group> -
Improved keyboard logic in
<sl-dropdown>,<sl-menu>, and<sl-select> - Updated
<sl-animation>to stable -
Updated to Stencil 2.0 (you may need to purge
node_modulesand runnpm installafter pulling) - Updated entry points in
package.jsonto reflect new filenames generated by Stencil 2
2.0.0-beta.17
-
Added
minlengthandspellcheckattributes to<sl-textarea> - Fixed a bug where clicking a tag in
<sl-select>wouldn’t toggle the menu -
Fixed a bug where options where
<sl-select>options weren’t always visible or scrollable -
Fixed a bug where setting
nullon<sl-input>,<sl-textarea>, or<sl-select>would throw an error -
Fixed a bug where
rolewas on the wrong element and aria attribute weren’t explicit in<sl-checkbox>,<sl-switch>, and<sl-radio> -
Fixed a bug where dynamically adding/removing a slot wouldn’t work as expected in
<sl-card>,<sl-dialog>, and<sl-drawer> -
Fixed a bug where the value wasn’t updated and events weren’t emitted when using
setRangeTextin<sl-input>and<sl-textarea> - Optimized
hasSlotutility by using a simpler selector - Updated Bootstrap Icons to 1.0.0 with many icons redrawn and improved
- Updated contribution guidelines
Form validation has been reworked and is much more powerful now!
-
The
invalidattribute now reflects the control’s validity as determined by the browser’s constraint validation API -
Added
requiredto<sl-checkbox>,<sl-select>, and<sl-switch> -
Added
reportValidity()andsetCustomValidity()methods to all form controls - Added validation checking for custom and native form controls to
<sl-form> - Added
novalidateattribute to<sl-form>to disable validation - Removed the
validattribute from all form controls - Removed valid and invalid design tokens and related styles (you can use your own custom styles to achieve this)
2.0.0-beta.16
-
Added
hoistattribute to<sl-color-picker>,<sl-dropdown>, and<sl-select>to work around panel clipping - Added
<sl-format-bytes>utility component - Added
clearableandrequiredprops to<sl-select> - Added
slclearevent to<sl-input> - Added keyboard support to the preview resizer in the docs
-
Fixed a bug where the
aria-selectedstate was incorrect in<sl-menu-item> -
Fixed a bug where custom properties applied to
<sl-tooltip>didn’t affect show/hide transitions -
Fixed a bug where
--sl-input-color-*custom properties had no effect on<sl-input>and<sl-textarea> -
Refactored
<sl-dropdown>and<sl-tooltip>to use positioner elements so panels/tooltips can be customized easier
2.0.0-beta.15
- Added
image-comparercomponent -
Added
--width,--height, and--thumb-sizecustom props to<sl-switch> - Fixed an
aria-labelledbyattribute typo in a number of components -
Fixed a bug where the
changeevent wasn’t updating the value in<sl-input> - Fixed a bug where
<sl-color-picker>had the wrong border color in the dark theme - Fixed a bug where
<sl-menu-item>had the wrong color in dark mode when disabled - Fixed a bug where WebKit’s autocomplete styles made inputs looks broken
- Fixed a bug where aria labels were wrong in
<sl-select> - Fixed a bug where clicking the label wouldn’t focus the control in
<sl-select>
2.0.0-beta.14
- Added dark theme
- Added
--sl-panel-background-colorand--sl-panel-border-colortokens - Added
--tabs-border-colorcustom property to<sl-tab-group> - Added
--track-colorcustom property to<sl-range> - Added
tagpart to<sl-select> - Updated
package.jsonso custom elements imports can be consumed from the root - Fixed a bug where scrolling dialogs didn’t resize properly in Safari
-
Fixed a bug where
slshowandslhidewould be emitted twice in some components -
Fixed a bug where
custom-elements/index.d.tswas broken due to an unclosed comment (fixed in Stencil 1.17.3) - Fixed bug where inputs were not using border radius tokens
- Fixed a bug where the text color was being erroneously set in
<sl-progress-ring> -
Fixed a bug where
<sl-progress-bar>used the wrong part name internally forindicator - Removed background color from
<sl-menu> - Updated to Stencil 1.17.3
2.0.0-beta.13
-
Added
slactivateandsldeactivateevents to<sl-menu-item> - Added experimental
<sl-animation>component - Added shields to documentation
- Fixed a bug where link buttons would have
type="button" - Fixed a bug where button groups with tooltips experienced an odd spacing issue in Safari
- Fixed a bug where scrolling in dropdowns/selects didn’t work properly on Windows (special thanks to Trendy for helping troubleshoot!)
- Fixed a bug where selecting a menu item in a dropdown would cause Safari to scroll
- Fixed a bug where type to select wouldn’t accept symbols
- Moved scrolling logic from
<sl-menu>to<sl-dropdown>
2.0.0-beta.12
- Added support for
href,target, anddownloadto buttons - Fixed a bug where buttons would have horizontal spacing in Safari
- Fixed a bug that caused an import resolution error when using Shoelace in a Stencil app
2.0.0-beta.11
- Added button group component
- Fixed icon button alignment
- Fixed a bug where focus visible observer wasn’t removed from
<sl-details> -
Replaced the deprecated
componentDidUnloadlifecycle method withdisconnectedCallbackto prevent issues with frameworks
2.0.0-beta.10
- Added community page to the docs
-
Fixed a bug where many components would erroneously receive an
idwhen using the custom elements bundle - Fixed a bug where tab groups weren’t scrollable with the mouse
2.0.0-beta.9
- Added the icon button component
- Added the skeleton component
-
Added the
typeToSelectmethod to menu so type-to-select behavior can be controlled externally - Added the
pulseattribute to badge - Fixed a bug where hovering over select showed the wrong cursor
- Fixed a bug where tabbing into a select control would highlight the label
- Fixed a bug where tabbing out of a select control wouldn’t close it
- Fixed a bug where closing dropdowns wouldn’t give focus back to the trigger
- Fixed a bug where type-to-select wasn’t working after the first letter
- Fixed a bug where clicking on menu items and dividers would steal focus from the menu
- Fixed a bug where the color picker wouldn’t parse uppercase values
-
Removed the
no-footerattribute from dialog and drawer (slot detection is automatic, so the attribute is not required) - Removed
close-iconslot from alert -
Replaced make-shift icon buttons with
<sl-icon-button>in alert, dialog, drawer, and tag - Updated Stencil to 1.17.1
- Switched to jsDelivr for better CDN performance
2.0.0-beta.8
- Added the card component
- Added
--focus-ringcustom property to tab - Fixed a bug where range tooltips didn’t appear on iOS
- Fixed constructor bindings so they don’t break the custom elements bundle
- Fixed tag color contrast to be AA compliant
- Fixed a bug that made it difficult to vertically align rating
- Fixed a bug where dropdowns would always close on mousedown when inside a shadow root
- Made tag text colors AA compliant
- Promoted badge to stable
- Refactored
:hostvariables and moved non-display props to base elements -
Refactored event handler bindings to occur in
connectedCallbackinstead of the constructor - Refactored scroll locking logic to use
Setinstead of an array - Updated the custom elements bundle documentation and added bundler examples
- Upgraded Stencil to 1.17.0–0 (next) to fix custom elements bundle
2.0.0-beta.7
- Added links to version 1 resources to the docs
- Added rating component
- Fixed a bug where some build files were missing
- Fixed clearable tags demo
- Fixed touch icon size in docs
2.0.0-beta.6
- Enabled the
dist-custom-elements-bundleoutput target - Fixed a bug where nested form controls were ignored in
<sl-form>
2.0.0-beta.5
- Fixed bug where
npm installwould fail due to postinstall script - Removed unused dependency
2.0.0-beta.4
- Added
pillvariation to badges - Fixed a bug where all badges had
pointer-events: none - Fixed
@sinceprops to show 2.0 instead of 1.0 - Fixed giant cursors in inputs in Safari
- Fixed color picker input width in Safari
- Fixed initial transitions for drawer, dialog, and popover consumers
- Fixed a bug where dialog, dropdown, and drawer would sometimes not transition in on the first open
- Fixed various documentation typos
2.0.0-beta.3
- Fix version in docs
- Remove custom elements bundle
2.0.0-beta.2
- Fix quick start and installation URLs
- Switch Docsify theme
- Update line heights tokens
2.0.0-beta.1
- Initial release