mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
chore: rename Theme
to GlobalTheme
Carbon Design System provides the idea of [inline theming](https://carbondesignsystem.com/guidelines/color/implementation/#how-inline-theming-works). As was mentioned in #1648 the Carbon standard implementation is [documented here](https://react.carbondesignsystem.com/?path=/docs/components-theme--playground). It says: > The `GlobalTheme` and `Theme` components allow you to specify the theme for a page, or for a part of a page, respectively. `Theme` is most often used to implement inline theming where you can style a portion of your page with a particular theme. What this means for `carbon-components-svelte` is that we should rename the existing `Theme` component to `GlobalTheme`. This leads us a tiny bit closer to [feature parity with Carbon v11](https://github.com/carbon-design-system/carbon-components-svelte/discussions/1614) and gives room for a new component dedicated to v11 inline theming.
This commit is contained in:
parent
c0ff8ff76a
commit
67271b94e7
15 changed files with 170 additions and 170 deletions
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
|
@ -127,7 +127,7 @@ export { default as TextAreaSkeleton } from "./TextArea/TextAreaSkeleton.svelte"
|
|||
export { default as TextInput } from "./TextInput/TextInput.svelte";
|
||||
export { default as TextInputSkeleton } from "./TextInput/TextInputSkeleton.svelte";
|
||||
export { default as PasswordInput } from "./TextInput/PasswordInput.svelte";
|
||||
export { default as Theme } from "./Theme/Theme.svelte";
|
||||
export { default as GlobalTheme } from "./GlobalTheme/GlobalTheme.svelte";
|
||||
export { default as Tile } from "./Tile/Tile.svelte";
|
||||
export { default as ClickableTile } from "./Tile/ClickableTile.svelte";
|
||||
export { default as ExpandableTile } from "./Tile/ExpandableTile.svelte";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue