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

Remove calculated width for scrollable tables #10897

Merged
merged 1 commit into from
Feb 8, 2018
Merged

Remove calculated width for scrollable tables #10897

merged 1 commit into from
Feb 8, 2018

Conversation

nicwinn
Copy link
Contributor

@nicwinn nicwinn commented Jan 31, 2018

Settingwidth: auto on a table reverts to default where browsers calculate a width. It overrides stylesheets that declare a table width (without !important that is) For example: I have table{width:100%} and control widths using containers. A table that needs scrolling somewhere between medium and large breakpoints will collapse because the column width is set by the widest unbreakable content in the cells.
image

width: auto on a table ready for scroll reverts the default where browsers calculate a width. This overrides a stylesheet declaring table width:100%. A table that needs scrolling somewhere between the medium and large breakpoints will collapse because the column width is set by the widest unbreakable content in the cells.
Copy link
Contributor

@ncoden ncoden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nicwinn,

I made some research and width: auto seems to not being required for the <table> scroll in IE9.

I'll make more tests in others browsers tomorrow.

@ncoden ncoden added this to the 6.4.4 milestone Jan 31, 2018
Copy link
Contributor

@ncoden ncoden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on:

  • Windows 7 (IE 8/9)
  • Windows 8 (IE 10)
  • Windows 10 (IE 11, Edge 14/15/16, Firefox v57, Chrome v53, Opera v49, Safari v5.1)
  • macOs 10.13 (Firefox v57, Chrome v63, Opera v49, Safari v11)
  • iOS 7 (Phone 5s: Safari, Chrome), iOS 10 (iPhone 7: Safari)
  • Android 7 (Galaxy S8: Firefox v51, Chrome v58)

✅ Everything works well. We can merge.

@ncoden
Copy link
Contributor

ncoden commented Feb 8, 2018

Thanks @nicwinn for the PR. 👍

@ncoden ncoden merged commit 483e56f into foundation:develop Feb 8, 2018
ncoden pushed a commit to ncoden/foundation-sites that referenced this pull request Jun 16, 2018
8fbe9c3 Remove calculated width for scrollable tables

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants