Skip to content

Commit 9e3d847

Browse files
committed
rustdoc: remove unnecessary CSS kbd { cursor: default }
Added along with theme picker changes in e78f139, 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.
1 parent ba64ba8 commit 9e3d847

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)