mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
refactor!: use :global()
for custom styles (#1940)
* Prefix custom class selectors with `bx--` (primarily used in custom UI Shell components) * Use `:global` scope so that selector names are not hashed
This commit is contained in:
parent
c1e0d7a3b8
commit
d5a11489f8
6 changed files with 70 additions and 49 deletions
|
@ -1624,12 +1624,12 @@ None.
|
|||
|
||||
### Slots
|
||||
|
||||
| Slot name | Default | Props | Fallback |
|
||||
| :-------- | :------ | :---- | :--------------------------------------------------------------------- |
|
||||
| -- | Yes | -- | -- |
|
||||
| closeIcon | No | -- | <code><svelte:component this="{closeIcon}" size="{20}" /></code> |
|
||||
| icon | No | -- | <code><svelte:component this="{icon}" size="{20}" /></code> |
|
||||
| text | No | -- | <code>{#if text}<span>{text}</span>{/if}</code> |
|
||||
| Slot name | Default | Props | Fallback |
|
||||
| :-------- | :------ | :---- | :--------------------------------------------------------------------------------------------------- |
|
||||
| -- | Yes | -- | -- |
|
||||
| closeIcon | No | -- | <code><svelte:component this="{closeIcon}" size="{20}" /></code> |
|
||||
| icon | No | -- | <code><svelte:component this="{icon}" size="{20}" /></code> |
|
||||
| text | No | -- | <code>{#if text}<span class:bx--header\_\_action-text="{true}">{text}</span>{/if}</code> |
|
||||
|
||||
### Events
|
||||
|
||||
|
@ -1835,9 +1835,9 @@ export interface HeaderSearchResult {
|
|||
|
||||
### Slots
|
||||
|
||||
| Slot name | Default | Props | Fallback |
|
||||
| :-------- | :------ | :---------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------ |
|
||||
| -- | Yes | <code>{ result: HeaderSearchResult; index: number } </code> | <code>{result.text}<br /> {#if result.description}<span>– {result.description}</span>{/if}</code> |
|
||||
| Slot name | Default | Props | Fallback |
|
||||
| :-------- | :------ | :---------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| -- | Yes | <code>{ result: HeaderSearchResult; index: number } </code> | <code>{result.text}<br /> {#if result.description}<span<br /> class:bx--header-search-menu-description="{true}"<br /> >– {result.description}</span<br /> >{/if}</code> |
|
||||
|
||||
### Events
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue