diff --git a/resources/js/components/forms/components/VSelect.vue b/resources/js/components/forms/components/VSelect.vue index 6c68cc823..0e2879c48 100644 --- a/resources/js/components/forms/components/VSelect.vue +++ b/resources/js/components/forms/components/VSelect.vue @@ -57,8 +57,8 @@ - @@ -67,8 +67,8 @@ {{ (allowCreation ? 'Type something to add an option': 'No option available') }}. - Create {{ searchTerm }} @@ -127,6 +127,11 @@ export default { } }, computed: { + optionStyle () { + return { + '--bg-form-color': this.color + } + }, inputStyle () { return { '--tw-ring-color': this.color diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 27806698b..bf630dc47 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -18,6 +18,10 @@ body.dark * { @layer base { + :root { + --bg-form-color: #2563eb; + } + p, div { @apply text-gray-900 dark:text-white; } diff --git a/tailwind.config.js b/tailwind.config.js index a57431c16..42dc0aa5e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -68,7 +68,8 @@ module.exports = { backgroundDark: '#272B2C', help: '#37352f99', helpDark: '#fff9' - } + }, + 'form-color': 'var(--bg-form-color)' }, transitionProperty: { height: 'height',
{{ (allowCreation ? 'Type something to add an option': 'No option available') }}.