Fix for stylized DataFrame (#6318)

* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2023-11-07 11:16:33 -08:00 committed by GitHub
parent 570866a3bd
commit d3b53a4577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/dataframe": minor
"gradio": minor
---
feat:Fix for stylized DataFrame

View File

@ -0,0 +1,11 @@
import { test, expect } from "@gradio/tootils";
test("first couple of cells in table are highlighted correctly", async ({
page
}) => {
const first_td = await page.locator("tbody tr.row_odd td").first();
await expect(first_td).not.toHaveCSS("background-color", "rgba(0, 0, 0, 0)");
const second_td = await page.locator("tbody tr.row_odd td").nth(1);
await expect(second_td).toHaveCSS("background-color", "rgba(0, 0, 0, 0)");
});

View File

@ -99,7 +99,7 @@
{col_count}
{value}
{headers}
on:change={(e) => (value = e.detail)}
on:change={interactive ? (e) => (value = e.detail) : () => {}}
on:select={(e) => gradio.dispatch("select", e.detail)}
{wrap}
{datatype}