Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit ffbc3a7

Browse files
committed
Add padding-right to native selects
1 parent 7b3ffc5 commit ffbc3a7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

resources/css/select.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
overflow: auto;
55
}
66

7+
.form-select {
8+
@apply pr-[--select-padding-right];
9+
}
10+
711
.form-select + :is(.trailing-inline-addon, .trailing-icon) {
812
@apply right-5;
913
}
@@ -12,3 +16,10 @@
1216
@apply pr-12;
1317
}
1418
}
19+
20+
/* sizing */
21+
@layer utilities {
22+
.form-input--sm .form-select {
23+
@apply pr-[--select-padding-right-sm];
24+
}
25+
}

resources/css/variables.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
--input-error-dark-placeholder-color: theme('colors.red.400');
114114
--input-error-dark-border-color: theme('colors.red.500');
115115

116+
/* select */
117+
--select-padding-right: theme('spacing.10');
118+
--select-padding-right-sm: theme('spacing.8');
119+
116120
/* label */
117121
--label-text-size: theme('fontSize.base');
118122
--label-font-weight: theme('fontWeight.medium');

0 commit comments

Comments
 (0)