Skip to content

Conversation

@adamwathan
Copy link
Member

This PR adds a new Blade partial to the docs that lets you pass in the data for a class table as an array instead of duplicating that table markup everywhere.

I've converted background colors and background position as an example, but it's fine for us to merge this without converting everything at once.

The ultimate goal is to add a Vue component for this that only shows the first x rows by default, with a "Show all" link at the bottom. That way super long class tables won't disguise the fact that there's other documentation below like they do now.

@adamwathan
Copy link
Member Author

adamwathan commented Nov 15, 2017

Gonna add the Vue component to this PR too what the hell. So I guess we won't merge til that's all good 😄

image

Better Algolia indexing and stuff and just simpler overall.
@adamwathan adamwathan merged commit 108d5d9 into master Nov 17, 2017
@adamwathan adamwathan deleted the class-table-partial branch November 17, 2017 14:27
@MichaelDeBoey
Copy link
Contributor

@adamwathan Nice addition maybe, would be to have the header be sticky? 🙂

@adamwathan
Copy link
Member Author

@MichaelDeBoey Considered it for about 30 seconds then realized it would be hell because the column widths are dynamic and I can't see a way to make it sticky without splitting it away from the other table, and trying to synchronize the widths between two tables sounds horrible 😄

@MichaelDeBoey
Copy link
Contributor

@adamwathan The custom Vue component would help a bit better I think? But indeed maybe not worth the work... 🙂

DCzajkowski pushed a commit to DCzajkowski/tailwindcss that referenced this pull request Jul 23, 2019
Change URL references from next to master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants