]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: remove unnecessary CSS `kbd { cursor: default }`
authorMichael Howell <michael@notriddle.com>
Wed, 14 Dec 2022 17:26:39 +0000 (10:26 -0700)
committerMichael Howell <michael@notriddle.com>
Wed, 14 Dec 2022 18:11:25 +0000 (11:11 -0700)
Added along with theme picker changes in
e78f1392b79779fa184f9a63e7be04ac7074a1c2, but no reason seems to have been
given at the time for why this particular rule was added.

Removing this rule results in `<kbd>` elements getting an I-bar, while the
rule causes them to use the "default" arrow, but since selecting the text in
these elements works fine, the I-bar is not misleading.

src/librustdoc/html/static/css/rustdoc.css
src/test/rustdoc-gui/help-page.goml

index c485ac9ddb8c1b2fd2252e4562d7d6f631d908cd..5b5d4eafa5a5bd8a08af3d55c249e7540de03a35 100644 (file)
@@ -1396,7 +1396,6 @@ kbd {
        vertical-align: middle;
        border: solid 1px var(--border-color);
        border-radius: 3px;
-       cursor: default;
        color: var(--kbd--color);
        background-color: var(--kbd-background);
        box-shadow: inset 0 -1px 0 var(--kbd-box-shadow-color);
index 799ba851c92f9a1aaa7892c758e87bba78d5b182..80203901ed3c4c5c4678d48cd7a3461e4a3f1ca5 100644 (file)
@@ -27,7 +27,6 @@ define-function: (
             "color": |color|,
             "background-color": |background|,
             "box-shadow": |box_shadow| + " 0px -1px 0px 0px inset",
-            "cursor": "default",
         }, ALL)),
     ],
 )