mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
feat: migrate Theme component to v11
- remove g80 theme option everywhere - utilize new `data-carbon-theme` attribute when applying theme - use cds instead of bx in places
This commit is contained in:
parent
21847da207
commit
3ae53de629
17 changed files with 38 additions and 60 deletions
2
types/Breadcrumb/BreadcrumbItem.svelte.d.ts
vendored
2
types/Breadcrumb/BreadcrumbItem.svelte.d.ts
vendored
|
@ -27,5 +27,5 @@ export default class BreadcrumbItem extends SvelteComponentTyped<
|
|||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{ default: { props?: { ["aria-current"]?: string; class: "bx--link" } } }
|
||||
{ default: { props?: { ["aria-current"]?: string; class: "cds--link" } } }
|
||||
> {}
|
||||
|
|
|
@ -64,5 +64,5 @@ export default class ProgressStep extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
},
|
||||
{ default: { props: { class: "bx--progress-label" } } }
|
||||
{ default: { props: { class: "cds--progress-label" } } }
|
||||
> {}
|
||||
|
|
2
types/Tag/Tag.svelte.d.ts
vendored
2
types/Tag/Tag.svelte.d.ts
vendored
|
@ -81,5 +81,5 @@ export default class Tag extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
close: CustomEvent<null>;
|
||||
},
|
||||
{ default: { props: { class: "bx--tag__label" } }; icon: {} }
|
||||
{ default: { props: { class: "cds--tag__label" } }; icon: {} }
|
||||
> {}
|
||||
|
|
2
types/Theme/Theme.svelte.d.ts
vendored
2
types/Theme/Theme.svelte.d.ts
vendored
|
@ -1,6 +1,6 @@
|
|||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100";
|
||||
export type CarbonTheme = "white" | "g10" | "g90" | "g100";
|
||||
|
||||
export interface ThemeProps {
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue