Skip to content

Commit

Permalink
Fixing grouped option paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
erimicel committed Jan 5, 2025
1 parent ede267f commit e41a2f4
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ https://erimicel.github.io/select2-tailwindcss-theme/
- [ ] Prepend and Append Styles
- [ ] Error state
- [ ] Fix height of multi select box
- [ ] Fix padding on grouped options

## 📦 Installation

Expand Down
9 changes: 9 additions & 0 deletions dist/select2-tailwindcss-theme-plain.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@

/* Group headers */
.select2-container--tailwindcss-3 .select2-results__group{
display: flex;
cursor: default;
--tw-bg-opacity: 1;
background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
Expand All @@ -159,6 +160,14 @@
color: rgb(55 65 81 / var(--tw-text-opacity, 1))
}

/* Group container */
.select2-container--tailwindcss-3 .select2-results__option--group{
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 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.

7 changes: 6 additions & 1 deletion dist/select2-tailwindcss-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@

/* Group headers */
.select2-container--tailwindcss-3 .select2-results__group {
@apply cursor-default bg-gray-50 px-3 py-1.5 text-xs font-medium uppercase tracking-wider text-gray-700;
@apply flex cursor-default bg-gray-50 px-3 py-1.5 text-xs font-medium uppercase tracking-wider text-gray-700;
}

/* Group container */
.select2-container--tailwindcss-3 .select2-results__option--group {
@apply px-0 py-0;
}

/* Loading state */
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 e41a2f4

Please sign in to comment.