chore: address PR #191 review comments#196
Conversation
- Revert favicon and navbar logo to OpenTDF-Logo.png per reviewer suggestion - Add srcDark logo (OpenTDF-Logo-White.png) for dark mode navbar - Remove orphaned favicon.svg and opentdf-icon.svg assets - Restore light/dark mode toggle: make navbar theme-aware (was always-dark) - Fix navbar layout robustness: max-width prevents center links overlapping brand - Deduplicate GitHub icon SVG into --github-icon-svg CSS custom property - Normalize dark mode selectors to html[data-theme='dark'] throughout - Add light mode support to landing page homepage (sections, cards, text, buttons) - Fix tip admonition: amber readable in both modes; decouple note from amber rule - Fix footer: add theme-aware light mode styling - Add html[data-theme='light'] design token overrides for landing page tokens Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary of ChangesHello @jp-ayyappan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request comprehensively addresses review comments from a previous iteration, primarily focusing on enhancing the site's theming capabilities. It introduces a full light mode pass across the entire website, ensuring a consistent and visually appealing experience regardless of the user's theme preference. Key updates include restoring the theme toggle, refining navigation and footer aesthetics, and improving the readability of admonition components. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request does a great job of addressing the previous review comments and implementing a comprehensive light mode theme across the site. The changes are well-structured, particularly the refactoring of the navbar to be theme-aware and the use of CSS custom properties to deduplicate the GitHub icon SVG and manage theme tokens. The layout robustness improvements are also a welcome addition. I have one minor suggestion to further clean up a CSS rule, but overall this is excellent work.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Thanks for the fixes/updates. I didn't appreciate the the light/dark mode was across both Docusaurus and the marketing webpage, too. Improvements look good, and the admonition and CSS improvements are exactly right. As proposed in Slack chat, let's handle the favicon/logo decision separately — for now, we will use a text-only logotype, no new diamond icon, no revert to old logo. That's being pushed to the branch directly. Good to merge when ready. |
Remove navbar logo image entirely — "OpenTDF" text wordmark only. Revert favicon back to OpenTDF-Logo.png pending icon direction decision. Retains favicon.svg and opentdf-icon.svg on disk for PR #196 to clean up. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove navbar logo image entirely — "OpenTDF" text wordmark only. Revert favicon back to OpenTDF-Logo.png pending icon direction decision. Retains favicon.svg and opentdf-icon.svg on disk for PR #196 to clean up. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Mike Morper <mike.morper@virtru.com>
## Summary Addresses all review comments raised on #191. Includes a light mode pass across the entire site since the theme toggle was broken. ## Changes ### Reviewer-requested fixes (jp-ayyappan) - **Favicon**: reverted from `favicon.svg` back to `OpenTDF-Logo.png` - **Navbar logo**: reverted from `opentdf-icon.svg` back to `OpenTDF-Logo.png`; added `srcDark: "img/OpenTDF-Logo-White.png"` for automatic dark/light logo switching via Docusaurus's built-in `srcDark` config - **Light/dark mode toggle restored**: navbar was hardcoded always-dark, breaking the color mode switch; made fully theme-aware ### CSS improvements (gemini-code-assist) - **Navbar layout robustness**: added `max-width` guard on the centered nav links container to prevent overlap with the absolutely-positioned brand and right items at narrow viewports - **GitHub icon deduplication**: extracted the large SVG data URL into a `--github-icon-svg` CSS custom property; both `-webkit-mask-image` and `mask-image` now reference the variable ### Code hygiene - **Removed orphaned assets**: `favicon.svg` and `opentdf-icon.svg` were added by #191 and are now unreferenced — deleted - **Added** `static/img/OpenTDF-Logo-White.png` for dark mode navbar logo - **Normalized dark mode selectors**: new `[data-theme='dark']` rules aligned to `html[data-theme='dark']` to match the file's existing convention and specificity ### Light mode for the full site - **Navbar**: light glass background in light mode; dark glass in dark mode — with adaptive text, nav links, and GitHub button colors - **Footer**: was always-dark; now theme-aware with light gray background, dark text, and adapted link colors in light mode - **Landing page homepage**: all six sections (`Hero`, `ProblemSolution`, `DeveloperFirst`, `Standards`, `Community`, `FinalCTA`) now adapt to light mode — white/off-white section backgrounds, dark text, corrected button borders. Code windows (Hero) and TDF diagram (Standards) intentionally remain dark in both modes. - **Design tokens**: added `html[data-theme='light']` overrides for all `--otdf-*` CSS custom properties ### Admonition fixes - **`:::tip` dark mode**: was unreadable (cream background + white inherited text in dark mode); now uses a dark amber background (`#451a03`) with light amber text in dark mode - **`:::note` decoupled from amber**: the original rule incorrectly targeted `alert--secondary` (note) alongside tip — removed; notes now use Docusaurus's default dark-mode-safe secondary styling ## Preview 🔗 <a href="https://opentdf-docs-preview-191-review.surge.sh/" target="_blank">https://opentdf-docs-preview-191-review.surge.sh/</a> ## Test plan - [ ] Verify homepage renders correctly in both light and dark mode - [ ] Verify navbar logo switches between color and white versions on theme toggle - [ ] Verify color mode toggle is visible and functional in the navbar - [ ] Verify footer adapts to light/dark mode - [ ] Verify `:::tip` admonitions are readable in both modes on a docs page (e.g. `/quickstart`) - [ ] Verify `:::note` admonitions render with default gray styling (not amber) - [ ] Check navbar layout at various viewport widths above the mobile breakpoint 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Mike Morper <mike.morper@virtru.com>
Remove navbar logo image entirely — "OpenTDF" text wordmark only. Revert favicon back to OpenTDF-Logo.png pending icon direction decision. Retains favicon.svg and opentdf-icon.svg on disk for PR #196 to clean up. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Mike Morper <mike.morper@virtru.com>
## Summary Addresses all review comments raised on #191. Includes a light mode pass across the entire site since the theme toggle was broken. ## Changes ### Reviewer-requested fixes (jp-ayyappan) - **Favicon**: reverted from `favicon.svg` back to `OpenTDF-Logo.png` - **Navbar logo**: reverted from `opentdf-icon.svg` back to `OpenTDF-Logo.png`; added `srcDark: "img/OpenTDF-Logo-White.png"` for automatic dark/light logo switching via Docusaurus's built-in `srcDark` config - **Light/dark mode toggle restored**: navbar was hardcoded always-dark, breaking the color mode switch; made fully theme-aware ### CSS improvements (gemini-code-assist) - **Navbar layout robustness**: added `max-width` guard on the centered nav links container to prevent overlap with the absolutely-positioned brand and right items at narrow viewports - **GitHub icon deduplication**: extracted the large SVG data URL into a `--github-icon-svg` CSS custom property; both `-webkit-mask-image` and `mask-image` now reference the variable ### Code hygiene - **Removed orphaned assets**: `favicon.svg` and `opentdf-icon.svg` were added by #191 and are now unreferenced — deleted - **Added** `static/img/OpenTDF-Logo-White.png` for dark mode navbar logo - **Normalized dark mode selectors**: new `[data-theme='dark']` rules aligned to `html[data-theme='dark']` to match the file's existing convention and specificity ### Light mode for the full site - **Navbar**: light glass background in light mode; dark glass in dark mode — with adaptive text, nav links, and GitHub button colors - **Footer**: was always-dark; now theme-aware with light gray background, dark text, and adapted link colors in light mode - **Landing page homepage**: all six sections (`Hero`, `ProblemSolution`, `DeveloperFirst`, `Standards`, `Community`, `FinalCTA`) now adapt to light mode — white/off-white section backgrounds, dark text, corrected button borders. Code windows (Hero) and TDF diagram (Standards) intentionally remain dark in both modes. - **Design tokens**: added `html[data-theme='light']` overrides for all `--otdf-*` CSS custom properties ### Admonition fixes - **`:::tip` dark mode**: was unreadable (cream background + white inherited text in dark mode); now uses a dark amber background (`#451a03`) with light amber text in dark mode - **`:::note` decoupled from amber**: the original rule incorrectly targeted `alert--secondary` (note) alongside tip — removed; notes now use Docusaurus's default dark-mode-safe secondary styling ## Preview 🔗 <a href="https://opentdf-docs-preview-191-review.surge.sh/" target="_blank">https://opentdf-docs-preview-191-review.surge.sh/</a> ## Test plan - [ ] Verify homepage renders correctly in both light and dark mode - [ ] Verify navbar logo switches between color and white versions on theme toggle - [ ] Verify color mode toggle is visible and functional in the navbar - [ ] Verify footer adapts to light/dark mode - [ ] Verify `:::tip` admonitions are readable in both modes on a docs page (e.g. `/quickstart`) - [ ] Verify `:::note` admonitions render with default gray styling (not amber) - [ ] Check navbar layout at various viewport widths above the mobile breakpoint 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Mike Morper <mike.morper@virtru.com>
Summary
Addresses all review comments raised on #191. Includes a light mode pass across the entire site since the theme toggle was broken.
Changes
Reviewer-requested fixes (jp-ayyappan)
favicon.svgback toOpenTDF-Logo.pngopentdf-icon.svgback toOpenTDF-Logo.png; addedsrcDark: "img/OpenTDF-Logo-White.png"for automatic dark/light logo switching via Docusaurus's built-insrcDarkconfigCSS improvements (gemini-code-assist)
max-widthguard on the centered nav links container to prevent overlap with the absolutely-positioned brand and right items at narrow viewports--github-icon-svgCSS custom property; both-webkit-mask-imageandmask-imagenow reference the variableCode hygiene
favicon.svgandopentdf-icon.svgwere added by feat: redesign OpenTDF.io homepage and update documentation styling #191 and are now unreferenced — deletedstatic/img/OpenTDF-Logo-White.pngfor dark mode navbar logo[data-theme='dark']rules aligned tohtml[data-theme='dark']to match the file's existing convention and specificityLight mode for the full site
Hero,ProblemSolution,DeveloperFirst,Standards,Community,FinalCTA) now adapt to light mode — white/off-white section backgrounds, dark text, corrected button borders. Code windows (Hero) and TDF diagram (Standards) intentionally remain dark in both modes.html[data-theme='light']overrides for all--otdf-*CSS custom propertiesAdmonition fixes
:::tipdark mode: was unreadable (cream background + white inherited text in dark mode); now uses a dark amber background (#451a03) with light amber text in dark mode:::notedecoupled from amber: the original rule incorrectly targetedalert--secondary(note) alongside tip — removed; notes now use Docusaurus's default dark-mode-safe secondary stylingPreview
🔗 https://opentdf-docs-preview-191-review.surge.sh/
Test plan
:::tipadmonitions are readable in both modes on a docs page (e.g./quickstart):::noteadmonitions render with default gray styling (not amber)🤖 Generated with Claude Code