fix: pin tailwind to version used in production #2528
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been trying to get the file list in the my development version working, and was struggling even after pointing the website at the production version.
It turns out that when this website was updated from Tachyons to Tailwind, a stray
collapse
style was left on the file list table:1a29aa9#diff-f8b81b815feea0a351b1a42218602943bda2f0d4cd44b009dbbbb5f7c8c35ddaR462
At the time this was fine! Tailwind didn't have a
collapse
style until version 3.2 and 3.0/3.1 were current at the time of the transition. The production site uses Tailwind 3.1 and works just fine.However! The version specification for the
tailwind
package in thewebsite
project's package.json uses a "compatible with version" specifier (https://stackoverflow.com/a/22345808) which will bring in new minor versions as they're released, so my development version used Tailwind 3.4 which does have acollapse
style that is unfortunately very different from the Tachyon style - rather than mapping to theborder-collapse: collapse
style as Tachyon does,collapse
in Tailwind translates tovisibility: collapse
- a CSS attribute intended to let developers hide specific table rows. When applied to a whole table it results in the entire table being hidden. This was the source of the bug.This PR:
border-collapse
Tailwind style to match the original intentyarn.lock
and any patch releases (which should not introduce or remove new styles)