Skip to content

Commit f453bfa

Browse files
committedApr 6, 2025·
use tailwind v4 compatible classes
1 parent 006b840 commit f453bfa

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎src/components/Autocomplete.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</svg>
2424
</button>
2525

26-
<ul v-if="expanded" class="absolute z-20 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white dark:bg-black py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"
26+
<ul v-if="expanded" class="absolute z-20 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white dark:bg-black py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm"
2727
@keydown="keyDown" :id="`${id}-options`" role="listbox">
2828
<li v-for="option in filteredValues"
2929
:class="[option === active ? 'active bg-indigo-600 text-white' : 'text-gray-900 dark:text-gray-100', 'relative cursor-default select-none py-2 pl-3 pr-9']"

‎src/components/ModalDialog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div :id="id" :data-transition-for="id" @mousedown="close" class="relative z-10"
33
:aria-labelledby="`${id}-title`" role="dialog" aria-modal="true">
44

5-
<div :class="['fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity', transition1]"></div>
5+
<div :class="['fixed inset-0 bg-gray-500/75 transition-opacity', transition1]"></div>
66

77
<div class="fixed inset-0 z-10 overflow-y-auto">
88
<div class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0">

‎src/components/TagInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</div>
3434
</div>
3535
</button>
36-
<ul v-if="expanded && filteredValues.length" class="absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white dark:bg-black py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"
36+
<ul v-if="expanded && filteredValues.length" class="absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white dark:bg-black py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm"
3737
@keydown="keyDown" :id="`${id}-options`" role="listbox">
3838
<li v-for="option in filteredValues.slice(0,maxVisibleItems)"
3939
:class="[option === active ? 'active bg-indigo-600 text-white' : 'text-gray-900 dark:text-gray-100', 'relative cursor-default select-none py-2 pl-3 pr-9']"

‎src/components/css.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const grid = {
5858
getGrid4Class(style:TableStyleOptions="stripedRows") { return hasTableStyle(style,"whiteBackground")
5959
? ""
6060
: hasTableStyle(style,"fullWidth")
61-
? "overflow-hidden shadow-sm ring-1 ring-black ring-opacity-5"
61+
? "overflow-hidden shadow-sm ring-1 ring-black/5"
6262
: grid.grid4Class },
6363
getTableClass(style:TableStyleOptions="stripedRows") { return hasTableStyle(style,"fullWidth") || hasTableStyle(style,"verticalLines")
6464
? "min-w-full divide-y divide-gray-300"
@@ -89,7 +89,7 @@ export const grid = {
8989
grid2Class: "",
9090
//original: inline-block min-w-full py-2 align-middle md:px-6 lg:px-8
9191
grid3Class: "inline-block min-w-full py-2 align-middle",
92-
grid4Class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg",
92+
grid4Class: "overflow-hidden shadow ring-1 ring-black/5 md:rounded-lg",
9393
tableClass: "min-w-full divide-y divide-gray-200 dark:divide-gray-700",
9494
theadClass: "bg-gray-50 dark:bg-gray-900",
9595
tableCellClass: "px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400",

0 commit comments

Comments
 (0)
Please sign in to comment.