mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Add required
prop to Select. (#968)
Upgrade sveld to set paths correctly on Windows. Make Prettier script compatible with Windows and run it.
This commit is contained in:
parent
26db657868
commit
6458c97c1a
14 changed files with 49 additions and 48 deletions
|
@ -150,14 +150,10 @@
|
|||
feedback="{feedback}"
|
||||
feedbackTimeout="{feedbackTimeout}"
|
||||
class="bx--snippet {type && `bx--snippet--${type}`}
|
||||
{type ===
|
||||
'inline' && 'bx--btn--copy'}
|
||||
{expanded &&
|
||||
'bx--snippet--expand'}
|
||||
{light &&
|
||||
'bx--snippet--light'}
|
||||
{hideCopyButton &&
|
||||
'bx--snippet--no-copy'}
|
||||
{type === 'inline' && 'bx--btn--copy'}
|
||||
{expanded && 'bx--snippet--expand'}
|
||||
{light && 'bx--snippet--light'}
|
||||
{hideCopyButton && 'bx--snippet--no-copy'}
|
||||
{wrapText && 'bx--snippet--wraptext'}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
|
@ -194,8 +190,7 @@
|
|||
class:bx--snippet-container="{true}"
|
||||
style="width: 100%; min-height: {minHeight}px; max-height: {maxHeight}"
|
||||
>
|
||||
<pre
|
||||
bind:this="{ref}">
|
||||
<pre bind:this="{ref}">
|
||||
<code><slot>{code}</slot></code>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue