Skip to content

Commit

Permalink
fix: Broken styles when built on GitHub Actions
Browse files Browse the repository at this point in the history
The GitHub Actions build was running a newer version of Tailwind CSS and
thus the problem was not visible locally.
  • Loading branch information
johnjago committed Apr 1, 2024
1 parent 9b05d04 commit a30e79d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"scripts": {
"dev": "npx tailwindcss -i ./main.css -o ./public/main.out.css --watch",
"dev": "tailwindcss -i ./main.css -o ./public/main.out.css --watch",
"serve": "http-server .",
"build": "npx tailwindcss -i main.css -o ./public/main.out.css"
"build": "tailwindcss -i main.css -o ./public/main.out.css"
},
"devDependencies": {
"http-server": "^14.1.1",
"tailwindcss": "^3.4.1"
"tailwindcss": "^3.4.3"
}
}
2 changes: 2 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ <h2 class="text-white text-5xl font-bold mb-16">Manage WooCommerce orders more e
for (const link of links) {
link.classList.add('text-gray-800');
}
downloadLink.classList.remove('hover:text-gray-800');
downloadLink.classList.add('border-gray-800', 'hover:bg-gray-800', 'hover:text-gray-50');
} else {
navbar.classList.remove('bg-[#ffffff56]', 'shadow-sm');
Expand All @@ -275,6 +276,7 @@ <h2 class="text-white text-5xl font-bold mb-16">Manage WooCommerce orders more e
link.classList.remove('text-gray-800');
}
downloadLink.classList.remove('border-gray-800', 'hover:bg-gray-800', 'hover:text-gray-50');
downloadLink.classList.add('hover:text-gray-800');
}
});
</script>
Expand Down

0 comments on commit a30e79d

Please sign in to comment.