Skip to content
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

poudriere.css: Adapt to latest DataTables style to avoid unreadable tables #1158

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

jrtc27
Copy link

@jrtc27 jrtc27 commented Jun 18, 2024

The newer DataTables imported in ce2146e ("Update DataTables to
1.13.8") started setting every other row to transparent. Since we add
the built etc classes to the whole table, this means the entire table's
background colour is green etc, and so the transparent rows now allow
that colour to shine through, making it hard to read the text.

Adapt the CSS selectors to only colour the thead within the whole table
so that the rows are restored to being uncoloured, less garish and
rather more readable. Note that these classes are also used for the
status display at the top, so we need to handle them on things other
than tables too, where we continue to just colour the whole element.

Fixes #1114

Fixes: ce2146e ("Update DataTables to 1.13.8")

…ables

The newer DataTables imported in ce2146e ("Update DataTables to
1.13.8") started setting every other row to transparent. Since we add
the built etc classes to the whole table, this means the entire table's
background colour is green etc, and so the transparent rows now allow
that colour to shine through, making it hard to read the text.

Adapt the CSS selectors to only colour the thead within the whole table
so that the rows are restored to being uncoloured, less garish and
rather more readable. Note that these classes are also used for the
status display at the top, so we need to handle them on things other
than tables too, where we continue to just colour the whole element.

Fixes freebsd#1114

Fixes:	ce2146e ("Update DataTables to 1.13.8")
@bdrewery
Copy link
Member

bdrewery commented Jul 7, 2024

@fel1x-developer thoughts?

@fel1x-developer
Copy link
Contributor

fel1x-developer commented Jul 7, 2024

@jrtc27 Can you post screenshots of before/after?

I cannot access to my FreeBSD instance right now, and I will be able to access to it by the end of August. However, if I see that the changes in the CSS file is clearly reflected in screenshots, I will accept this PR.

@jrtc27
Copy link
Author

jrtc27 commented Jul 7, 2024

I’m away from my laptop until the end of this week, but can provide screenshots when back if still needed

@jrtc27
Copy link
Author

jrtc27 commented Jul 12, 2024

Before:
4e0c9000ed4d5a6b2437eb54e67b3985b8c1b0f4
After:
b5d1531194feec13665bea629c9333e1033c4fd5

@fel1x-developer
Copy link
Contributor

I'm good with these changes

@jrtc27
Copy link
Author

jrtc27 commented Aug 7, 2024

Ping

1 similar comment
@jrtc27
Copy link
Author

jrtc27 commented Aug 20, 2024

Ping

@bdrewery bdrewery added this to the 3.4.2 milestone Aug 20, 2024
@bdrewery bdrewery merged commit d2cb250 into freebsd:release-3.4 Aug 20, 2024
0 of 6 checks passed
@jrtc27 jrtc27 deleted the table-row-background-fix branch August 21, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants