jiayuasu opened a new pull request, #2923:
URL: https://github.com/apache/sedona/pull/2923

   ## Did you read the Contributor Guide?
   
   - Yes, I have read the [Contributor 
Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor 
Development Guide](https://sedona.apache.org/latest/community/develop/)
   
   ## Is this PR related to a ticket?
   
   - Yes, and the PR name follows the format `[GH-XXX] my subject`. Follow-up 
polish to EPIC #2867 (after #2920 / #2922).
   
   ## What changes were proposed in this PR?
   
   The pill switcher introduced in #2922 (`EN | 中文` rendered inline in the 
header) visually crowded the mike version dropdown rendered into the site title 
at narrower viewport widths. This PR moves the language selector to a single 
trigger in the right-part of the header that, on click, opens a small native 
`<details>` popover listing the available locales.
   
   - The trigger is a typographic glyph: literal `文` next to a smaller 
superscript `A`, set in the system Han + Latin font stack so it scales cleanly 
at any size and never depends on rasterized icon weights.
   - The popover is white-on-shadow with the active locale (auto-detected via 
mkdocs-static-i18n's `config.theme.language`) highlighted in brand red.
   - Each menu link keeps `target="_self"` so mkdocs-material's 
`navigation.instant` skips it and the full page reloads — required for the 
active-state highlight in the dropdown to repaint after the user clicks across 
locales.
   - Locale `name` shortened from "English" to "EN" in `mkdocs.yml` so both 
menu items read as locale codes / native script (`EN` and `中文`) rather than a 
mix of language names and codes.
   - The right-part location keeps the switch clear of the left-part's site 
title + mike version dropdown at every viewport width.
   
   The CSS-only `<details>` element gives keyboard, screen-reader, and 
click-outside-to-close behavior for free with no JS dependency.
   
   ## How was this patch tested?
   
   Built and served the docs locally with `npx --prefix docs-overrides gulp 
build && uv run mkdocs serve`. Verified:
   
   - The new `文A` trigger appears in the right-part of the header on every page 
in both `/` and `/zh/` builds.
   - Clicking it opens a popover listing `EN` and `中文`; the active locale is 
highlighted in red.
   - Clicking either locale fully reloads the page (instant nav bypassed via 
`target="_self"`); the highlight repaints correctly in both directions (`/` ↔ 
`/zh/`).
   - The trigger does not collide with mike's version dropdown rendered into 
`.md-header__topic` at any viewport width tested (down to ~360px).
   
   ## Did this PR include necessary documentation updates?
   
   - No, this PR does not affect any public API so no need to change the 
documentation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to