chore: use truncate mixins

This commit is contained in:
Enrico Sacchetti 2024-01-04 22:49:40 -05:00
commit 0aa38ec81a
5 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
{
"total": 164,
"total": 165,
"components": [
{
"moduleName": "Accordion",

View file

@ -4,7 +4,7 @@
import Preview from "../../components/Preview.svelte";
</script>
This utility component wraps the `.bx--text-truncate--*` CSS selectors from [carbon-components](https://github.com/carbon-design-system/carbon/blob/master/packages/components/src/globals/scss/_helper-classes.scss#L11) for single-line text truncation.
This utility component wraps the `.bx--text-truncate-*` Sass mixins from [@carbon/styles](https://github.com/carbon-design-system/carbon/blob/main/packages/styles/scss/utilities/_text-truncate.scss) for single-line text truncation.
## Default
@ -31,4 +31,4 @@ The `truncate` action can be used on plain HTML elements.
</h4>
<h4 use:truncate={{ clamp: "front" }}>
Carbon Components Svelte is a Svelte component library that implements the Carbon Design System, an open source design system by IBM.
</h4>
</h4>