Skip to content

Commit a6337d3

Browse files
authored
Rollup merge of rust-lang#105707 - notriddle:notriddle/kbd-cursor, r=jhpratt,GuillaumeGomez
rustdoc: remove unnecessary CSS `kbd { cursor: default }` Added along with theme picker changes in https://github.com/rust-lang/rust/pull/47686/files#diff-7dc22a0530802d77c2f2ec9e834024a5657b6eab4055520fca46edc99a544413R1144, 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.
2 parents 8111cc4 + 9e3d847 commit a6337d3

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/librustdoc/html/static/css/rustdoc.css

-1
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,6 @@ kbd {
13961396
vertical-align: middle;
13971397
border: solid 1px var(--border-color);
13981398
border-radius: 3px;
1399-
cursor: default;
14001399
color: var(--kbd--color);
14011400
background-color: var(--kbd-background);
14021401
box-shadow: inset 0 -1px 0 var(--kbd-box-shadow-color);

src/test/rustdoc-gui/help-page.goml

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ define-function: (
2727
"color": |color|,
2828
"background-color": |background|,
2929
"box-shadow": |box_shadow| + " 0px -1px 0px 0px inset",
30-
"cursor": "default",
3130
}, ALL)),
3231
],
3332
)

0 commit comments

Comments
 (0)