Skip to content

Fix navbar version and language selectors visibility on tablet screens#55205

Open
perashanid wants to merge 1 commit intokubernetes:mainfrom
perashanid:fix/navbar-selectors-tablet
Open

Fix navbar version and language selectors visibility on tablet screens#55205
perashanid wants to merge 1 commit intokubernetes:mainfrom
perashanid:fix/navbar-selectors-tablet

Conversation

@perashanid
Copy link
Copy Markdown

@perashanid perashanid commented Mar 31, 2026

This PR fixes the navbar version and language selectors not being visible on tablet screens (iPad, iPad mini, and mobile devices in desktop mode).

Problem:
The version and language selector dropdowns in the navbar were using the Bootstrap class d-lg-block, which only displays elements on large screens (992px and above). This caused the selectors to be hidden on tablet screens (768px-991px), making it impossible for tablet users to switch versions or languages.

Solution:
Changed the responsive display classes from d-none d-lg-block to d-none d-md-block for both version selector dropdown and language selector dropdown. This change makes the selectors visible on medium screens and above (768px and above), which includes tablet devices.

Changes Made:

  • Modified layouts/partials/navbar.html
  • Changed version selector class: d-none d-lg-block to d-none d-md-block
  • Changed language selector class: d-none d-lg-block to d-none d-md-block

Testing:
The fix ensures that selectors remain hidden on mobile screens (less than 768px) where hamburger menu is used instead, selectors are now visible on tablet screens (768px-991px), selectors continue to work on desktop screens (992px and above), and there is no visual regression on existing layouts.

Related Issue: 54939

@k8s-ci-robot k8s-ci-robot added the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Mar 31, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tengqm for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Mar 31, 2026
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 31, 2026
Changed responsive classes from d-lg-block to d-md-block to make selectors visible on tablet screens (768px-991px). This fixes the issue where version and language selectors were hidden on iPad and other tablet devices.
@perashanid perashanid force-pushed the fix/navbar-selectors-tablet branch from 9234563 to e0eba95 Compare March 31, 2026 23:00
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Mar 31, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 9234563
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/69cc514f3387590008499357
😎 Deploy Preview https://deploy-preview-55205--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit e0eba95
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/69cc5204aa7da400080161dc
😎 Deploy Preview https://deploy-preview-55205--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@Arhell Arhell left a comment

Choose a reason for hiding this comment

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

Lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants