mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
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:
parent
570866a3bd
commit
d3b53a4577
6
.changeset/floppy-crews-do.md
Normal file
6
.changeset/floppy-crews-do.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/dataframe": minor
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Fix for stylized DataFrame
|
11
js/app/test/dataframe_colorful.spec.ts
Normal file
11
js/app/test/dataframe_colorful.spec.ts
Normal 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)");
|
||||
});
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user