8000 Use consistent list of text-like inputs for styling · activeadmin/activeadmin@b8a997e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b8a997e

Browse files
committed
Use consistent list of text-like inputs for styling
Previously, inputs with type=datetime-local, type=search, type=week and type=month were missing some tailwind styles.
1 parent df64a45 commit b8a997e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugin.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ module.exports = plugin(
7272
'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)`,
7373
'border-color': theme('colors.blue.600', colors.blue[600]),
7474
},
75+
'@apply bg-gray-50 border border-gray-300 text-gray-900 rounded-md focus:ring-blue-500 focus:border-blue-500 w-full dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500': {},
7576
},
7677
[['input::placeholder', 'textarea::placeholder']]: {
7778
color: theme('colors.gray.500', colors.gray[500]),
@@ -312,9 +313,6 @@ module.exports = plugin(
312313
'[type=radio]': {
313314
'@apply w-4 h-4 border-gray-300 focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-600 dark:focus:bg-blue-600 dark:bg-gray-700 dark:border-gray-600': {}
314315
},
315-
[['[type=date]', '[type=email]', '[type=number]', '[type=password]', '[type=tel]', '[type=text]', '[type=time]', '[type=url]', 'select', 'textarea']]: {
316-
'@apply bg-gray-50 border border-gray-300 text-gray-900 rounded-md focus:ring-blue-500 focus:border-blue-500 w-full dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500': {}
317-
},
318316
'a': {
319317
'@apply text-blue-600 underline underline-offset-[.2rem]': {}
320318
},

0 commit comments

Comments
 (0)
0