-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Simplify source pages sidebar handling #119016
Simplify source pages sidebar handling #119016
Conversation
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @jsha |
@@ -1557,20 +1577,6 @@ a.tooltip:hover::after { | |||
#src-sidebar div.files > a.selected { | |||
background-color: var(--src-sidebar-background-selected); | |||
} | |||
#src-sidebar-toggle > button { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the block just under #src-sidebar-toggle
rule as it made more sense like this.
This comment has been minimized.
This comment has been minimized.
c310228
to
ac97299
Compare
content: ">"; | ||
} | ||
.src-sidebar-expanded #src-sidebar-toggle > button::before { | ||
content: "<"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn’t we reduce using generated content for accessibility reasons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We absolutely did. The other possibility is to have two buttons. I'll go with this option then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be switched to <details>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but I thought for accessibility reasons we didn't want to do that haha.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense I guess.
ac97299
to
e9faeea
Compare
Updated the JS by having two buttons instead of just one. |
☔ The latest upstream changes (presumably #119066) made this pull request unmergeable. Please resolve the merge conflicts. |
Since the text isn't really important in itself, instead of updating it manually in the JS, we can let the CSS do it instead.
r? @notriddle