-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Column pinning selection opacity issue #118
Comments
This also happens in V2, here's a video from the documentation website: Screen.Recording.2023-12-21.at.10.07.45.movI'm happy to help fix this if you can point what files should I check to debug it. |
This was fixed for V2 in #229 although it's not published. We will see about back porting this fix for V1. |
@alessandrojcm any info on porting the fix to V1 yet ? or can you suggest any temporary fix we could use on our side until the porting happens. |
@nairvishal I can take a look into this later today. |
mantine-react-table version
1.2.0
react & react-dom versions
18.2.0
Describe the bug and the steps to reproduce it
When we pin the colums to left or right and there are columns behind with row selection enabled the opacity of hover and selected row will make it so that the text behind the pinned columns overlap.
Minimal, Reproducible Example - (Optional, but Recommended)
Attached the screenshot and the code is below.
`
import { useState } from 'react';
import { MantineReactTable, useMantineReactTable } from 'mantine-react-table';
import { columns, data as initialData } from './makeData';
import { ActionIcon, Box } from '@mantine/core';
import { IconEdit, IconSend, IconTrash } from '@tabler/icons-react';
export const Example = () => {
const [data, setData] = useState(initialData);
const table = useMantineReactTable({
columns,
data,
enableRowSelection: true,
enableRowActions: true,
enablePinning: true,
renderRowActions: ({ row }) => (
<Box sx={{ display: 'flex', flexWrap: 'nowrap', gap: '8px' }}>
<ActionIcon
color="blue"
onClick={() =>
window.open(
mailto:kevinvandy@mailinator.com?subject=Hello ${row.original.firstName}!
)
}
>
<ActionIcon
color="orange"
onClick={() => {
table.setEditingRow(row);
}}
>
<ActionIcon
color="red"
onClick={() => {
data.splice(row.index, 1); //assuming simple data table
setData([...data]);
}}
>
),
});
return ;
};
export default Example;
`
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms
The text was updated successfully, but these errors were encountered: