mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat: upgrade Button to v11 styles
Button changes ##BREAKING CHANGES - `skeleton` prop has been removed. Use `ButtonSkeleton` component instead - `size` prop has new values - `kind` prop has new values - `isSelected` is now `selected - `on:mouseover`, `on:mouseenter`, and `on:mouseleave` forwarded events were replaced with `on:pointerover`, `on:pointerenter`, and `on:pointerleave` - `as` no longer accepts boolean types ## Features - New `2xl` size - `expressive` styles now apply to all button sizes - `as` accepts a string to specify a desired HTML element
This commit is contained in:
parent
50f24b882a
commit
997cc1fa5e
6 changed files with 184 additions and 237 deletions
|
@ -1,7 +1,9 @@
|
|||
$prefix: 'bx';
|
||||
|
||||
// Use all Carbon themes
|
||||
@use '@carbon/styles/scss/config' with (
|
||||
$use-akamai-cdn: true,
|
||||
$prefix: 'bx'
|
||||
$prefix: $prefix
|
||||
);
|
||||
@use "@carbon/styles" as styles;
|
||||
@use "@carbon/styles/scss/utilities" as *;
|
||||
|
@ -22,9 +24,9 @@
|
|||
@include styles.theme(styles.$g100);
|
||||
}
|
||||
|
||||
.bx--text-truncate-end {
|
||||
.#{$prefix}--text-truncate-end {
|
||||
@include text-truncate-end;
|
||||
}
|
||||
.bx--text-truncate-front {
|
||||
.#{$prefix}--text-truncate-front {
|
||||
@include text-truncate-front;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue