Title duplicated on the extreme left
The table title appears duplicated because of this two pieces of code(here and here):
caption: {
position: "absolute",
left: "-1000px",
},
<caption className={classes.caption}>{title}</caption>
Expected Behavior
This second appearance of the title shouldn't happen
Current Behavior
I suggest the removal caption-title piece and I would be happy to do it, but before I want to understand why it is there (maybe there is a reason and needs a more complex solution).
Steps to Reproduce (for bugs)
- Just zoom-out the table
Your Environment
| Tech | Version |
|---|---|
| Material-UI | 3.1.4 |
| MUI-datatables | 2.0.0-beta-36 |
| React | 16.4.1 |
| browser | chrome & firefox |
It is there for accessibility purposes so when a screen reader goes over the table it has a caption to read. I think a compromise to this is to set the position even further. I'm going to move it to -3000
Thanks, @gregnb
this cause issue has an issue in Firefox scroll

A good approach to solve this can be the strategy used by @joshwcomeau on this snippet (https://www.joshwcomeau.com/snippets/react-components/visually-hidden/)
snippet (https://www.joshwcomeau.com/snippets/react-components/visually-hidden/)
thanks a lot @giovanisleite,
in my case, I've just fixed it by adding
top: 0
for MUIDataTable override file.
and now it looks fine
