Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Make sticky header for the "Browser Compatibility Table" #6432

Closed
Konrud opened this issue Feb 7, 2020 · 4 comments
Closed

Make sticky header for the "Browser Compatibility Table" #6432

Konrud opened this issue Feb 7, 2020 · 4 comments
Assignees
Labels
p3 Low Priority: Some time in the future

Comments

@Konrud
Copy link

Konrud commented Feb 7, 2020

Proposal to make header of the "Browser Compatibility Table" sticky. That is, every time the user scrolls down, header sticks to the top, that way it always appears at the top and you don't need to remember or worst yet scroll to the top to see which column corresponds to which browser. Just look at the "Browser Compatibility Table" on the list-style-type page, it's quite long.

It can be done with the progressive enhancement in mind, that is browsers that don't support it will still get the old design.
I would be happy to do this myself but it seems I can't find the right repository for it.

CSS, rough, code for the sticky header


@supports (position: sticky) or (position: -webkit-sticky) {
    thead tr.bc-browsers > th {
       position: -webkit-sticky
       position: sticky;
       top: 0;
       z-index: 1;
       background: rgba(212, 221, 228, .97);
   }

 /**
 *  1. That removes name of each browser for the sighted users, 
 *     but not for the screen readers
 */
  thead tr.bc-browsers > th > SPAN {
     color: transparent; /*[1]*/
  }
}


The result should be something like that:

StickyHeaderForMDN

P.S.
I'm not sure if this is the right repository for this issue but couldn't find any other suitable repository for this.

@Elchi3 Elchi3 transferred this issue from mdn/browser-compat-data Feb 7, 2020
@Elchi3
Copy link
Member

Elchi3 commented Feb 7, 2020

Thanks for your report. Moved over to mdn/kuma which holds the front-end for MDN.

@Elchi3 Elchi3 added the status: needs triage Status: Untriaged label Feb 7, 2020
@tobinmori tobinmori added status: needs answer: product Status: Awaiting decision from product and removed status: needs triage Status: Untriaged labels Feb 10, 2020
@tobinmori
Copy link

@atopal, can you prioritize this feature request?

@atopal atopal added the p3 Low Priority: Some time in the future label Feb 10, 2020
@atopal
Copy link
Contributor

atopal commented Feb 10, 2020

done

@tobinmori tobinmori removed the status: needs answer: product Status: Awaiting decision from product label Feb 25, 2020
@WebMechanic
Copy link

I totally support this request!

This is one of these large tables that would highly benefit from this change:

@caugner caugner closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3 Low Priority: Some time in the future
Projects
None yet
Development

No branches or pull requests

6 participants