pytest-dev / pytest-dev/pytest-html

Modify the CSS inside the result table

Open
#913 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
779
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Hello, I would like to know if it is possible to modify the css inside the result table. I was able to customize mine but by inserting raw HTML in the desired row, but I would like to be able to modify it dynamically (let's say I want to show content or not after clicking on a button). I have an external .css file which I used thanks to --css as an argument. Though I cannot override id or class HTML tags.

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the result table with the --css argument and inspect how the generated HTML handles the table's id and class attributes. Determine where result-table styling is produced and define done as allowing an external CSS file to override the table styling and support the requested dynamic display behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html, python
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.