question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Minor] Issue with archived pages, top bar is missing z-index

See original GitHub issue
  1. Set the screen resolution to 1920x1080
  2. Go to https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Scroll-linked_effects (or any other page using this banner)
  3. Observe the archived page bar

Expected:

I expected the top bar to be in the middle

Actual:

The text in the top bar is shifted to the right

image

Fix

Add left: 0; to .archived { in the css file index.scss

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
peterbecommented, Jun 16, 2021

do you want me to submit a fix […snip…] Or do you think this is ready to be closed?

No fix necessary. These pages will be deleted off MDN first week of July this year. And I don’t want to close it until that has officially happened.

Thank you so much for thinking about a fix.

Besides, one thing we can, today already (but perhaps merge it a little bit later), do is find if that banner has any (S)CSS that we can now delete because it’s going to just be an orphan that can never be used again.

0reactions
tannerdolbycommented, Jun 16, 2021

It looks there there was some scss associated with the .archived class for that top bar, I did a quick git grep search, the .archived {} scss declaration is only being used once:

tannerdolby:yari TannerDolby$ git grep -n ".archived {"
client/src/document/index.scss:249:.archived {

and here is the corresponding scss within client/src/document/client/index.scss

/*
 * style for archived content banner
 * http://localhost:3000/en-us/docs/BrowserID/Specify_an_Email_Address
 */
.archived {
  background-color: $yellow-400;
  padding: math.div($base-spacing, 4);
  position: fixed;
  text-align: center;
  top: 0;
  width: 100%;

  p {
    margin: 0;
  }
}

plus the <div> element that represents that archived bar in HTML:

tannerdolby:yari TannerDolby$ git grep -n '<div className="archived">'
client/src/document/index.tsx:199:    <div className="archived">

I assume since the class .archived is no longer going to be used in the className declaration in JSX, then we can probably go ahead and remove that entire <div> along with the scss. Submitting a PR shortly and we can hold off on merging until ready.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Safari for iOS: z-index order bug scrolling a page with ...
I do so by making sure that the z-index of the menu button is lower than the one from the header, and everything...
Read more >
4 reasons your z-index isn't working (and how to fix it)
Solution: Move the modal outside of the content parent, and into the main stacking context of the page. The corrected markup would then...
Read more >
I am having a z-index dropdown issue - Stack Overflow
Your dropdown menu getting disappear because it is not having any connection with your parent element.
Read more >
My Widget Is Being Covered Up By Something Else - Elementor
If one element is on top of, or under, another element, and the positions should be reversed, you need to change the Z-index...
Read more >
z-index of top bar - WordPress.org
By adding the below CSS code, you can change the Z-index value for the top bar as per your need. #site-header.medium-header .top-header-wrap {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found