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

Table last column border is missing #54

Closed
stanislavgeorgiev opened this issue Sep 11, 2018 · 9 comments
Closed

Table last column border is missing #54

stanislavgeorgiev opened this issue Sep 11, 2018 · 9 comments
Assignees
Labels
style Might need a change in carbon-components CSS

Comments

@stanislavgeorgiev
Copy link
Contributor

stanislavgeorgiev commented Sep 11, 2018

This behavior can been seen in both my project and the library storybook:

image

It is caused by having an additional column automatically added by the table component itself:
image

<th [ngStyle]="{'width': scrollbarWidth + 'px', 'padding': 0, 'border': 0}">
	<!--
		Scrollbar pushes body to the left so this header column is added to push
		the title bar the same amount and keep the header and body columns aligned.
	-->
</th>
@zvonimirfras zvonimirfras self-assigned this Sep 12, 2018
@zvonimirfras
Copy link
Member

This is related to sticky header scrollbar issues.

The correct solution right now seems to be to make a change in carbon components styles to apply the border on thead instead of the last th. Especially since sticky headers is a feature that we would, ideally, support.

@stanislavgeorgiev
Copy link
Contributor Author

stanislavgeorgiev commented Sep 12, 2018 via email

@zvonimirfras
Copy link
Member

@stanislavgeorgiev your image doesn't show for me here.

@stanislavgeorgiev
Copy link
Contributor Author

Thanks @zvonimirfras, I reattached it to the post above. I attached it in my email reply but I guess github couldn't retrieve it from there.

@stanislavgeorgiev
Copy link
Contributor Author

The other really annoying side effect from that hidden column is that my table ends up not centred in its box - left side is ok but there's more empty space on the right.

@zvonimirfras zvonimirfras added the style Might need a change in carbon-components CSS label Sep 18, 2018
@stanislavgeorgiev
Copy link
Contributor Author

Submitted a new issue with carbon-components:
carbon-design-system/carbon#1124

@stanislavgeorgiev
Copy link
Contributor Author

@zvonimirfras I'm closing the issue since carbon-components@9.30.2 fixes the styles

@stanislavgeorgiev
Copy link
Contributor Author

stanislavgeorgiev commented Oct 18, 2018

On a second thought, we should adopt the dependency update first - it's currently using 9.20.0. Could you bump it up to 9.30.2. I already switched it in our project but I'm scared to do it here :D

@zvonimirfras
Copy link
Member

Bumped to latest in dev dependencies. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Might need a change in carbon-components CSS
Projects
None yet
Development

No branches or pull requests

2 participants