Skip to content

Commit cf347b5

Browse files
Add Disabled Class to Primary Button (#1482)
* Add Disabled Class I add this on all projects maybe the buttons should come with this by default? * Update PrimaryButton.vue --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 7a16763 commit cf347b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/inertia/resources/js/Components/PrimaryButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defineProps({
88
</script>
99

1010
<template>
11-
<button :type="type" class="inline-flex items-center px-4 py-2 bg-gray-800 dark:bg-gray-200 border border-transparent rounded-md font-semibold text-xs text-white dark:text-gray-800 uppercase tracking-widest hover:bg-gray-700 dark:hover:bg-white focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150">
11+
<button :type="type" class="inline-flex items-center px-4 py-2 bg-gray-800 dark:bg-gray-200 border border-transparent rounded-md font-semibold text-xs text-white dark:text-gray-800 uppercase tracking-widest hover:bg-gray-700 dark:hover:bg-white focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150 disabled:opacity-50 disabled:cursor-not-allowed">
1212
<slot />
1313
</button>
1414
</template>

0 commit comments

Comments
 (0)