fix: add @reference directive for Tailwind 4 scoped styles
Some checks failed
Build Docker Image / build (push) Failing after 1m46s
Some checks failed
Build Docker Image / build (push) Failing after 1m46s
Add @reference 'tailwindcss' to components using @apply in scoped styles: - MainNavigation.vue - SubNavigation.vue - GlobalSearchBar.vue Required for Tailwind CSS 4 compatibility with scoped Vue styles.
This commit is contained in:
@@ -197,6 +197,8 @@ const isActiveTab = (key: string) => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@reference "tailwindcss";
|
||||
|
||||
.tab-item {
|
||||
@apply px-4 py-2 rounded-full font-medium text-sm transition-colors;
|
||||
@apply hover:bg-base-200;
|
||||
|
||||
@@ -52,6 +52,8 @@ const isActive = (path: string) => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@reference "tailwindcss";
|
||||
|
||||
.subnav-item {
|
||||
@apply px-4 py-2 rounded-full text-sm font-medium transition-colors whitespace-nowrap;
|
||||
@apply text-base-content/70 hover:text-base-content hover:bg-base-200;
|
||||
|
||||
@@ -209,6 +209,8 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@reference "tailwindcss";
|
||||
|
||||
.search-field {
|
||||
@apply flex flex-col px-4 py-2 min-w-32;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user