-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix vanishing list on firefox #8690
Conversation
Any idea what the underlying cause is here? e.g. maybe a Firefox bug? |
Builds ready [3443c69]
Page Load Metrics (648 ± 53 ms)
|
I don't even know, it doesn't have issues when in full screen, either... 🤕 Pretty sure there's a better solution -- at least I hope there is. I'll keep digging. |
This is certainly a thing we could do. I think it'd be pretty easy - we already inject things via |
@Gudahtt and @whymarrh this PR now adds static asset replacement feature to the build process, wherein each .HTML file has a |
Builds ready [9301715]
Page Load Metrics (634 ± 33 ms)
|
Well this escalated quickly. |
It really got out of hand fast. |
This isn't a bad solution, but I am curious whether or not there's a way for us to fix this in CSS. |
I think we might be able to avoid all of this using the In @import 'tab/index';
.tabs {
+ // Just for Firefox — https://github.com/MetaMask/metamask-extension/pull/8690
+ -moz-transform: translateZ(0);
+
&__list {
display: flex;
justify-content: flex-start; |
@whymarrh very interesting. that does fix the problem! Way better fix. Do you want to do the honors or should I close this and submit a new pr with that one liner? |
I can open one up, sure. |
So, this resolves the issue of disappearing components on firefox when scrolling. but I dislike removing this functionality for chrome that doesn't have a problem with it. How difficult would it be to add the browser we are building for as a classname to the HTML element during the build step? We could then enable or disable rules based on browser
Additional details:
There is interplay between position: sticky and z-index. If I change z-index to 0 less of the components disappear when scrolling, if I change it to -1 everything is great but the tabs are gone so :P