Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for fixed first column in horizontal-scrollable tables #686

Open
jimbobmcgee opened this issue Mar 8, 2022 · 0 comments
Open

Support for fixed first column in horizontal-scrollable tables #686

jimbobmcgee opened this issue Mar 8, 2022 · 0 comments

Comments

@jimbobmcgee
Copy link

jimbobmcgee commented Mar 8, 2022

I have added a gist (https://gist.github.com/jimbobmcgee/edd734e4bfc3eb7c90ae7ef001f8b756) for the extra CSS needed to allow a table with table-scroll to have a first column which remains on screen during the scroll. The colours are just taken from the Spectre docs page, but work for striped and hovered tables, too.

I'm not a SASS guy, so I am not about to meddle with any preprocessor, but if you want to incorporate it within your SASS rules so it better respects screen sizes, colours, etc., please feel free.

It also might be better to target a specific class, e.g. table-sticky, which is easily achievable.

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

No branches or pull requests

1 participant