Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@sl-design-system/[email protected]
Minor Changes
#1580
33fd543
- Improve form integration behaviorPreviously, if you had an
<sl-button>
withtype
reset
orsubmit
, it would call the<form>
'sreset()
orrequestSubmit()
methods. With this change, the same behavior now works if you only have an<sl-form>
element as the parent. If both<form>
and<sl-form>
elements are present, then the<form>
element will take precedence. This makes it a minor change.Patch Changes
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Minor Changes
#1576
b3619c7
- Improve ability toextends Dialog
This change improves the ability to extend the Dialog component by splitting the
render()
method into smaller methods. This makes it easier to override specific parts of the Dialog component:renderHeader(title: string, subtitle: string)
renderBody()
renderFooter()
renderActions()
The
renderHeader
method is slightly different. If all you want to do is add a title or subtitle to the header, you can override the method and callreturn super.renderHeader('My title', 'My subtitle')
.To be clear: the above API is only meant to be used when you are extending the
Dialog
class. If you are using the<sl-dialog>
element in your HTML, than you can still use theheader
,body
, andfooter
slots as before.Patch Changes
33fd543
,4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Minor Changes
33fd543
- Improve reset and submit behavior:requestSubmit()
method on<sl-form>
sl-reset
andsl-submit
events on<sl-form>
Patch Changes
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Minor Changes
#1575
ebe4c8a
- MigrateDataSource
andArrayDataSource
to dedicated@sl-design-system/data-source
package.Since these are only used in the grid component, and that component is still in draft, migrating
this code into its own package is not considered a breaking change.
Patch Changes
#1567
f8c6b86
- AddellipsizeText
property to grid and columnWhen set on either
<sl-grid>
or<sl-grid-column>
(or any of their variants), theellipsizeText
propertywill render the table data using the
<sl-ellipsize-text>
component, which truncates text with an ellipsis when itoverflows its container. This is useful for tables with long text that would otherwise cause row height to grow.
The component also automatically adds a tooltip to the truncated text so that it can still be viewed.
#1575
ebe4c8a
- Automatically render an<sl-skeleton>
component in each<td>
elementWhen an item to be rendered equals
FetchDataSourcePlaceholder
, the column will render askeleton component instead of the item itself. This will help users understand that the
data is being fetched and will be displayed soon.
You have the option to customize the skeleton component by passing custom
renderer
functionto the column component. See Storybook for an example.
You will automatically get this behavior if you use the
FetchDataSource
(from the@sl-design-system/data-source
package) with the grid.Updated dependencies [
33fd543
,4714b36
,ebe4c8a
,ebe4c8a
,4714b36
,33fd543
,f8c6b86
]:@sl-design-system/[email protected]
Minor Changes
#1575
ebe4c8a
- MigrateDataSource
andArrayDataSource
to dedicated@sl-design-system/data-source
package.Since these are only used in the grid component, and that component is still in draft, migrating
this code into its own package is not considered a breaking change.
#1580
33fd543
- Add newclosestElementComposed
DOM utility methodThis new utility method is a wrapper around
HTMLElement.prototype.closest
that also considers the composed tree. This makes it easier to find the closest ancestor that matches a given selector, even if the element is in a shadow tree.Patch Changes
4714b36
- FixRovingTabindexController
to correctly navigate between light & shadow DOM elements@sl-design-system/[email protected]
Minor Changes
#1580
33fd543
- Improve implicit form submit behaviorPreviously when you pressed enter in a text field, it would call
requestSubmit()
on the associated<form>
element. This mimics the behavior of the native<input>
element. With this change, the behavior now also works if there is only a parent<sl-form>
element. If both<form>
and<sl-form>
elements are present, then the<form>
element will take precedence. This makes it a minor change.Patch Changes
4714b36
,ebe4c8a
,33fd543
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,4714b36
,ebe4c8a
,3ce1a3b
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1599
4714b36
- Set direction to vertical for keyboard navigationUpdated dependencies [
4714b36
,ebe4c8a
,33fd543
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1599
4714b36
- Various a11y related fixes/improvements:<sl-combobox>
element instead of the<input>
elementaria-selected="false"
was missing on the non-selected optionsaria-multiselectable="true"
was missing on the listbox when the multiple property is setaria-label
to the<sl-tag-list>
with value"Selected options"
<input>
#1551
99d6174
- Hide the placeholder when there is a selection in multiple mode#1563
ae44384
- Fix missing types in NPM packageUpdated dependencies [
33fd543
,4714b36
,33fd543
,ae44384
]:@sl-design-system/[email protected]
Patch Changes
#1575
ebe4c8a
- New@sl-design-system/data-source
packageThis packages provides
DataSource
,ArrayDataSource
andFetchDataSource
classesfor managing data sources in the design system. At the moment, it is only used by the
grid components, but it can be used in future components as well.
DataSource
andArrayDataSource
were previously part of the@sl-design-system/shared
package, but they have been moved to this new package to make them more reusable.
FetchDataSource
is a new data source around thewindow.fetch()
API that can be used tofetch data from a remote server.
Updated dependencies [
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1567
f8c6b86
- New utility<sl-ellipsize-text>
componentUpdated dependencies [
4714b36
,3ce1a3b
]:@sl-design-system/[email protected]
Patch Changes
#1563
ae44384
- Fix missing types in NPM packageUpdated dependencies [
33fd543
,4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
33fd543
,4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
ae44384
- Fix missing types in NPM package@sl-design-system/[email protected]
Patch Changes
33fd543
,4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1563
ae44384
- Fix missing types in NPM packageUpdated dependencies [
4714b36
,ebe4c8a
,33fd543
,ae44384
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1563
ae44384
- Fix missing types in NPM packageUpdated dependencies [
33fd543
,4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1599
4714b36
- Various a11y related fixes<sl-tag-list>
:aria-labelledby
for the tooltip instead ofaria-describedby
aria-label
on the host element;role="list"
provides enough information<sl-tag>
:aria-description
to describe how to remove the tag using the keyboardaria-hidden="true"
tabindex
from the.wrapper
element in the shadow DOMUpdated dependencies [
4714b36
,4714b36
,ebe4c8a
,3ce1a3b
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,4714b36
,ebe4c8a
,3ce1a3b
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1563
ae44384
- Fix missing types in NPM packageUpdated dependencies [
33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1599
4714b36
- Fix logic to not just link based onaria-describedby
, but also onaria-labelledby
#1588
3ce1a3b
- Make the lazy tooltip smarter when it comes to determining which context to use to create the<sl-tooltip>
elementWith this change, when the tooltip is lazily created, it checks if the target element has a shadow root. If it does, it uses the shadow root to create the tooltip custom element. If it doesn't, it uses the root node of the target element. If there is no parent custom element, then
getRootNode()
will return the document, so it will dodocument.createElement('sl-tooltip')
.After
createElement('sl-tooltip')
it then checks if the tooltip has a shadow root itself. If it doesn't, it means the tooltip custom element wasn't defined. When that happens, it will log a warning on the console.Updated dependencies [
4714b36
,ebe4c8a
,33fd543
]:@sl-design-system/[email protected]
Patch Changes
#1587
79261ab
- updated background color with primary.25#1592
ea2fc26
- Replaced background tokens with color.palette.white.base