-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow preventing duplicate options when allowUserOptions is thruthy (#…
…132) * add props duplicates, duplicateFunc and duplicateOptionMsg to control how duplicates are handled when allowUserOptions is truthy add CSS variable background: var(--sms-remove-btn-hover-bg, rgba(0, 0, 0, 0.2)) rename CSS variable --sms-button-hover-color to --sms-remove-btn-hover-color * document props duplicates, duplicateFunc and duplicateOptionMsg * fix label `for` attr in Example.svelte, give all labels cursor: pointer since they open multiselect on click * add test 'shows duplicateOptionMsg when searchText is already selected ' for new duplicate props * change default remove button icon to Google Material Icons round-clear https://api.iconify.design/ic:round-clear.svg
- Loading branch information
Showing
6 changed files
with
99 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ ul { | |
} | ||
label { | ||
font-weight: bold; | ||
cursor: pointer; | ||
} | ||
|
||
table { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<svg {...$$props} viewBox="0 0 20 20" fill="currentColor"> | ||
<svg {...$$props} viewBox="0 0 24 24" fill="currentColor"> | ||
<path | ||
d="M10 1.6a8.4 8.4 0 100 16.8 8.4 8.4 0 000-16.8zm4.789 11.461L13.06 14.79 10 11.729l-3.061 3.06L5.21 13.06 8.272 10 5.211 6.939 6.94 5.211 10 8.271l3.061-3.061 1.729 1.729L11.728 10l3.061 3.061z" | ||
d="M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" | ||
/> | ||
</svg> | ||
<!-- https://api.iconify.design/ic:round-clear.svg --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters