diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-12-10 21:33:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-10 21:33:17 -0800 |
| commit | 3a46a6b9974db88e1690f254cbc2f3a1d6384d28 (patch) | |
| tree | fbc3217d1622be0d670bf8c419b1b78a20f06ede /src/librustdoc/html/static/rustdoc.css | |
| parent | c94345e3c23cf8e7574165a5cf31650628f51be8 (diff) | |
| parent | 2363a20b9868ae41ac92cac4b06c167c3cb320aa (diff) | |
| download | rust-3a46a6b9974db88e1690f254cbc2f3a1d6384d28.tar.gz rust-3a46a6b9974db88e1690f254cbc2f3a1d6384d28.zip | |
Rollup merge of #79896 - GuillaumeGomez:more-elements-focus, r=Manishearth
Make search results tab and help button focusable with keyboard Fixes https://github.com/rust-lang/rust/issues/79859. I replaced the element with `button` tag, which allows to focus them (and "click" on them using "enter") using only the keyboard. cc ``@sersorrel`` r? ``@Manishearth``
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 8eef65a231d..61905b8eca8 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -1176,21 +1176,22 @@ pre.rust { height: 35px; } -#titles > div { +#titles > button { float: left; width: 33.3%; text-align: center; font-size: 18px; cursor: pointer; + border: 0; border-top: 2px solid; } -#titles > div:not(:last-child) { +#titles > button:not(:last-child) { margin-right: 1px; width: calc(33.3% - 1px); } -#titles > div > div.count { +#titles > button > div.count { display: inline-block; font-size: 16px; } @@ -1459,7 +1460,7 @@ h4 > .notable-traits { top: 24px; } - #titles > div > div.count { + #titles > button > div.count { float: left; width: 100%; } @@ -1565,7 +1566,7 @@ h4 > .notable-traits { } @media (max-width: 416px) { - #titles, #titles > div { + #titles, #titles > button { height: 73px; } |
