Skip to content

feat: make pricing comparison table headers sticky on scroll#7830

Open
rishiraj38 wants to merge 3 commits into
layer5io:masterfrom
rishiraj38:fix/pricing-table-sticky-headers
Open

feat: make pricing comparison table headers sticky on scroll#7830
rishiraj38 wants to merge 3 commits into
layer5io:masterfrom
rishiraj38:fix/pricing-table-sticky-headers

Conversation

@rishiraj38

Copy link
Copy Markdown
Member

Description

This PR makes the pricing page's features comparison table headers sticky on scroll, staying docked right below the main sticky navigation bar while keeping horizontal scrolling on smaller screens intact.

Changes Proposed

  • Wrapped the comparison table header rows in a semantic <thead> block inside comparison.js.
  • Applied position: sticky; top: 80px; z-index: 10; to the <thead> element so that both header rows stay docked and stack dynamically under the navigation bar (without overlaps or gaps when text wraps).
  • Set solid background overlays on the header cells using theme variables (props.theme.body and props.theme.secondaryColor) to prevent scrolling table content from showing underneath the headers.
  • Set the overflow on the wrapper container (.main) to overflow: visible on desktop width screens (@media (min-width: 992px)) so that vertical sticky positioning works natively while preserving overflow-x: auto on mobile/tablets.
Screen.Recording.2026-06-28.at.12.45.42.AM.mov

Fixes #7665

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
@github-actions

github-actions Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview deployment: https://layer5.io/pr-preview/pr-7830/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

@Bhumikagarggg

Copy link
Copy Markdown
Contributor

@rishiraj38 Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

@Rajesh-Nagarajan-11 Rajesh-Nagarajan-11 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Image Most popular looks little cut off , have a look and also noticed while scrolling text appeared on background

Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
@rishiraj38

Copy link
Copy Markdown
Member Author

Image Most popular looks little cut off , have a look and also noticed while scrolling text appeared on background

Fixed.

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.

Pricing: subscription plans as a sticky row

3 participants