Skip to content

Commit

Permalink
Fixing append and prepend options
Browse files Browse the repository at this point in the history
  • Loading branch information
erimicel committed Jan 5, 2025
1 parent 06cb6aa commit f318878
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 13 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ https://erimicel.github.io/select2-tailwindcss-theme/

## Current issues to be fixed

- [ ] Prepend and Append Styles
- [ ] Fix height of multi select box

## 📦 Installation
Expand Down
13 changes: 13 additions & 0 deletions dist/select2-tailwindcss-theme-plain.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,19 @@
padding-bottom: 0px
}

/* Input groups */
.input-group > * + select + .select2-container--tailwindcss-3 .select2-selection{
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
border-left-width: 0px
}

.input-group > .select2-container--tailwindcss-3:not(:last-child) .select2-selection{
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
border-right-width: 0px
}

/* Loading state */
.select2-container--tailwindcss-3 .select2-results__option--loading{
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion dist/select2-tailwindcss-theme-plain.min.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dist/select2-tailwindcss-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@
@apply px-0 py-0;
}

/* Input groups */
.input-group > * + select + .select2-container--tailwindcss-3 .select2-selection {
@apply rounded-l-none border-l-0;
}

.input-group > .select2-container--tailwindcss-3:not(:last-child) .select2-selection {
@apply rounded-r-none border-r-0;
}

/* Loading state */
.select2-container--tailwindcss-3 .select2-results__option--loading {
@apply flex items-center justify-center py-4 text-gray-400;
Expand Down
2 changes: 1 addition & 1 deletion dist/select2-tailwindcss-theme.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f318878

Please sign in to comment.