Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scss/_config.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $enable-shadows: true !default;
$enable-gradients: true !default;
$enable-transitions: true !default;
$enable-reduced-motion: true !default;
$enable-smooth-scroll: true !default;
$enable-smooth-scroll: false !default;
$enable-grid-classes: true !default;
$enable-container-classes: true !default;
$enable-cssgrid: true !default;
Expand Down
5 changes: 5 additions & 0 deletions scss/forms/_chip-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ $chip-input-tokens: defaults(
background-color: var(--bg-2);
opacity: 1;

&:focus-within {
border-color: var(--control-border-color);
outline: 0;
}

> .chip {
pointer-events: none;
opacity: var(--control-disabled-opacity);
Expand Down
6 changes: 3 additions & 3 deletions site/src/content/docs/forms/chips.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@ Use a form label for better accessibility.

### Disabled

Disable the ghost input to prevent adding new chips. Existing chips become non-interactive.
Disable the ghost input to prevent adding new chips, and disable the dismiss buttons on existing chips. Existing chips become non-interactive.

<Example code={`<div class="chip-input theme-primary" data-bs-chips>
<span class="chip">
Read only
<button type="button" class="chip-dismiss" aria-label="Remove">
<button type="button" class="chip-dismiss" aria-label="Remove" disabled><!--[!code highlight]-->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="4" y1="4" x2="12" y2="12"/><line x1="12" y1="4" x2="4" y2="12"/></svg>
</button>
</span>
<input type="text" class="form-ghost" placeholder="Disabled..." disabled>
<input type="text" class="form-ghost" placeholder="Disabled..." disabled><!--[!code highlight]-->
</div>`} />

## Usage
Expand Down