-
Notifications
You must be signed in to change notification settings - Fork 117
feat: add the .opt_css() method
#775
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #775 +/- ##
==========================================
+ Coverage 91.61% 91.67% +0.05%
==========================================
Files 47 47
Lines 5773 5790 +17
==========================================
+ Hits 5289 5308 +19
+ Misses 484 482 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code review (updated)MICHAEL NOTES:
Found 5 issues (note: all scored below 80% confidence threshold, so these are minor):
All issues are below the 80% confidence threshold for reporting as definite problems. The implementation is solid overall. 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
This PR adds the
.opt_css()method. It allows users to add custom CSS to HTML-output tables. Thisopt_*()method builds on the existing functionality of thetab_options(table_additional_css=)option by allowing users to more easily and safely append CSS rulesets to that Options parameter.Notice in that rendered table that: (1) body cells get a 'skyblue' background color, (2) the padding of body cells is increased horizontally and vertically, and (3) column-label text is now centered instead of being right-aligned.
Fixes: #174