Toggle switches not displaying correctly
Is there an easy way to make ToggleColumn like an actual toggle switch?
It seems to default to a circular thing that isn't clear whether it's checked or not.. Or is that just a problem with my setup?
9 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Strange... for me, it appears like in the screen grab above (in the 'enabled' row).
Your screengrab is how I want it to look.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yes, although slightly differently to that:
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
const colors = require ('tailwindcss/colors');
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
],
theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
}
},
},
plugins: [forms, typography],
};
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I thought I had, but it looks slightly different to mine. Maybe I followed another tutorial somewhere else. I will check this out in more detail, thanks.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
This is working now. I was missing this line from the tailwind config:
'./vendor/filament/*/.blade.php'
Thanks again for nudging me in the right direction!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View