|
1 | 1 | <template> |
2 | 2 | <nav |
3 | 3 | v-if="hasPagination" |
4 | | - class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6" |
| 4 | + class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6 dark:bg-gray-500 dark:border-gray-400 dark:text-gray-100" |
5 | 5 | > |
6 | 6 | <p v-if="!hasData || pagination.total < 1"> |
7 | 7 | {{ translations.no_results_found }} |
|
88 | 88 | :on-change="onPerPageChange" |
89 | 89 | /> |
90 | 90 |
|
91 | | - <p class="hidden lg:block text-sm text-gray-700 flex-grow"> |
| 91 | + <p class="hidden lg:block text-sm text-gray-700 flex-grow dark:text-gray-100"> |
92 | 92 | <span class="font-medium">{{ pagination.from }}</span> |
93 | 93 | {{ translations.to }} |
94 | 94 | <span class="font-medium">{{ pagination.to }}</span> |
|
105 | 105 | <component |
106 | 106 | :is="previousPageUrl ? 'a' : 'div'" |
107 | 107 | :class="{ |
108 | | - 'cursor-not-allowed text-gray-400': !previousPageUrl, |
109 | | - 'text-gray-500 hover:bg-gray-50': previousPageUrl |
| 108 | + 'cursor-not-allowed text-gray-400 dark:bg-gray-700 dark:text-gray-500': !previousPageUrl, |
| 109 | + 'text-gray-500 hover:bg-gray-50 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-gray-600': previousPageUrl |
110 | 110 | }" |
111 | 111 | :href="previousPageUrl" |
112 | 112 | :dusk="previousPageUrl ? 'pagination-previous' : null" |
113 | | - class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium" |
| 113 | + class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium dark:border-gray-500" |
114 | 114 | @click.prevent="onClick(previousPageUrl)" |
115 | 115 | > |
116 | 116 | <span class="sr-only">{{ translations.previous }}</span> |
|
140 | 140 | " |
141 | 141 | :href="link.url" |
142 | 142 | :dusk="link.url ? `pagination-${link.label}` : null" |
143 | | - class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700" |
| 143 | + class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 dark:bg-gray-700 dark:text-gray-100 dark:border-gray-500 dark:hover:bg-gray-500" |
144 | 144 | :class="{ |
145 | 145 | 'cursor-not-allowed': !link.url, |
146 | 146 | 'hover:bg-gray-50': link.url, |
147 | | - 'bg-gray-100': link.active, |
| 147 | + 'bg-gray-100 dark:bg-blue-500 dark:hover:bg-blue-400': link.active, |
148 | 148 | }" |
149 | 149 | @click.prevent="onClick(link.url)" |
150 | 150 | > |
|
156 | 156 | <component |
157 | 157 | :is="nextPageUrl ? 'a' : 'div'" |
158 | 158 | :class="{ |
159 | | - 'cursor-not-allowed text-gray-400': !nextPageUrl, |
160 | | - 'text-gray-500 hover:bg-gray-50': nextPageUrl |
| 159 | + 'cursor-not-allowed text-gray-400 dark:bg-gray-700 dark:text-gray-500': !nextPageUrl, |
| 160 | + 'text-gray-500 hover:bg-gray-50 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-gray-600': nextPageUrl |
161 | 161 | }" |
162 | 162 | :href="nextPageUrl" |
163 | 163 | :dusk="nextPageUrl ? 'pagination-next' : null" |
164 | | - class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium" |
| 164 | + class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium dark:border-gray-500" |
165 | 165 | @click.prevent="onClick(nextPageUrl)" |
166 | 166 | > |
167 | 167 | <span class="sr-only">{{ translations.next }}</span> |
|
0 commit comments