-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Show triangle on the "Details" disclosure element in all cases #86589
Conversation
Some changes occurred in HTML/CSS/JS. |
Thanks! What would be nice would be to have a GUI test for it, but not sure if it's actually possible... Any idea @jsha? If not possible, then let's simply r+ it. |
This strikes me as possibly the wrong fix. I think what's going on is that we have some CSS that hides the triangle for rustdoc's built-in toggles, since we want to use a |
Co-authored-by: Miguel Ojeda <ojeda@kernel.org>
29c4d90
to
385f079
Compare
That's a good point, pushed another fix.
I'm not familiar with rustdoc's CSS but I think the below should've worked here: rust/src/librustdoc/html/static/rustdoc.css Lines 1453 to 1455 in 50a9081
But it does hide the normal summary's triangles, any idea? |
Okay, I looked into this and it turns out the issue is actually a bug in the very old version of normalize.css we use (3.0.0, from 2014). In #82313 I tried to update to the latest, 8.0.1. But it was reverted in #82549 because of these regressions: See these demos that show it is a problem with normalize.css: https://jsbin.com/jorowazuli/edit?html,output https://jsbin.com/kecozayaka/edit?html,output The right path forward is to figure out why upgrading normalize.css caused those regressions, fix the issues, and then do the upgrade. Alternately, we may conclude that we no longer need normalize.css, which would be an even nicer outcome. |
Thanks for investigating! Hmm, but given that we should take a look at it carefully and reviewing will taker a longer time not to regress anymore, I think this PR is still worth landing as a stopgap, no? |
You're right, it does make sense to land this as a stopgap. The current version looks good but I want to make sure we know to remove it after normalize.css is either upgraded or removed. Can you add a comment that says "Remove after normalize.css is either upgraded or removed (#86629)"? |
Sure, added. |
@bors r+ |
📌 Commit 14413ad has been approved by |
☀️ Test successful - checks-actions |
Re-submission of #82805, fixes the style issue by applying the same margin as
<p>
.Before
After
r? @GuillaumeGomez