Skip to content

Commit bfc2c3e

Browse files
committed
added visual test and color
1 parent f1600c5 commit bfc2c3e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/lib/src/data-grid/DataGrid.stories.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,4 +1145,9 @@ export const DataGridSortedExpanded: Story = {
11451145

11461146
export const UnknownUniqueId: Story = {
11471147
render: DataGridUnknownUniqueRowId,
1148+
play: async ({ canvasElement }) => {
1149+
const canvas = within(canvasElement);
1150+
const editorCell = canvas.getAllByText("Task 1")[0];
1151+
editorCell && (await userEvent.dblClick(editorCell));
1152+
},
11481153
};

packages/lib/src/data-grid/DataGrid.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const DataGridContainer = styled.div<{
100100
.rdg-text-editor:focus {
101101
border-color: transparent;
102102
background-color: transparent;
103+
color: ${(props) => props.theme.dataFontColor};
103104
}
104105
}
105106
.rdg-header-row {

0 commit comments

Comments
 (0)