Skip to content

Update header navigation and font#13

Merged
ogwata merged 3 commits intomainfrom
feature/header-redesign
Feb 16, 2026
Merged

Update header navigation and font#13
ogwata merged 3 commits intomainfrom
feature/header-redesign

Conversation

@ogwata
Copy link
Copy Markdown
Member

@ogwata ogwata commented Feb 16, 2026

Summary

  • switch main font to Google Sans Flex
  • redesign global header navigation with accordion groups
  • adjust accordion hierarchy sizing and indentation
  • open external tutorial/FAQ links in new tabs

Testing

  • npm run build
  • npm run preview

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the documentation site's typography and navigation system. The changes introduce Google Sans Flex as the primary font family and redesign the global header navigation to use accordion-style dropdowns for better content organization. The navigation now groups products under a "Product" dropdown and organizes reference documentation into collapsible sections for docs and contribution guides.

Changes:

  • Switch main font from Noto Sans JP to Google Sans Flex (with Noto Sans JP as fallback for Japanese characters)
  • Redesign header navigation with accordion dropdowns using native <details> elements
  • Adjust navigation hierarchy with proper sizing, indentation, and visual feedback
  • Ensure external tutorial/FAQ links open in new tabs with proper security attributes

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
src/layouts/DocsLayout.astro Implements new accordion-based navigation structure with bilingual labels, external link handling, and responsive CSS styling for dropdowns
public/styles/global.css Updates font imports and font-family stack to prioritize Google Sans Flex while maintaining Japanese font support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/layouts/DocsLayout.astro Outdated
Comment thread src/layouts/DocsLayout.astro
Comment thread src/layouts/DocsLayout.astro
Comment thread src/layouts/DocsLayout.astro
Comment thread public/styles/global.css Outdated
Comment on lines 13 to 16
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@8..144,400;8..144,500;8..144,700&display=swap');

/* Noto Sans JP: 丸付き数字(❶-❿)を確実にカバー */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using font-display: swap or font-display: optional in the Google Fonts URL query parameter to improve perceived performance and avoid FOUT (Flash of Unstyled Text). Currently using display=swap, which is good. However, you're loading two separate font families (Google Sans Flex and Noto Sans JP), which increases the initial page load. Consider whether both fonts are necessary on every page, or if Noto Sans JP could be loaded conditionally for Japanese pages only.

Copilot uses AI. Check for mistakes.
Comment thread src/layouts/DocsLayout.astro Outdated
Copy link
Copy Markdown
Member

@MurakamiShinyu MurakamiShinyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ogwata ogwata merged commit 21348f1 into main Feb 16, 2026
3 checks passed
@ogwata ogwata deleted the feature/header-redesign branch February 16, 2026 13:53
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