Skip to content

Conversation

jsha
Copy link
Contributor

@jsha jsha commented Oct 14, 2020

Prior to this change, if you clicked a menu to open it, then clicked to
close it, the menu heading would still have a grey background
highlighting it. That's due to a CSS rule in pure-menu that causes
focused elements to have a highlighted color. To fix: unfocus the menu
when it is closed via mouse (but leave it focused when it is closed via
keyboard).

Remove a mouseover handler that is not needed anymore.

Prior to this change, if you clicked a menu to open it, then clicked to
close it, the menu heading would still have a grey background
highlighting it. That's due to a CSS rule in pure-menu that causes
focused elements to have a highlighted color. To fix: unfocus the menu
when it is closed via mouse (but leave it focused when it is closed via
keyboard).

Remove a mouseover handler that is not needed anymore.
@Kixiron
Copy link
Contributor

Kixiron commented Oct 17, 2020

r? @Nemo157 @GuillaumeGomez

@jyn514 jyn514 added A-frontend Area: Web frontend S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Oct 17, 2020
@GuillaumeGomez
Copy link
Member

Need to check locally to confirm it but the code looks good.

@jyn514
Copy link
Member

jyn514 commented Oct 17, 2020

Tested it out and it works great, thanks :) It does keep the highlighting when you use space to close, but I think that's intentional because it shows the tag that's in focus.

@jyn514 jyn514 merged commit fe468bf into rust-lang:master Oct 17, 2020
@jsha jsha deleted the onclick-js-handling branch October 18, 2020 00:59
@jsha jsha mentioned this pull request Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Web frontend S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants