about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-01 06:40:57 +0000
committerbors <bors@rust-lang.org>2021-06-01 06:40:57 +0000
commit80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8 (patch)
tree753209d2c05daacbcda07533be2c66ddf4285f1f
parentc9c1f8be3fda5b58520c579451d3f5e20736ec90 (diff)
parent0c5ed2cb952408253bc8662b8bf973360c02c595 (diff)
downloadrust-80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8.tar.gz
rust-80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8.zip
Auto merge of #85859 - pickfire:patch-3, r=CraftSpider
Add title for copy to clipboard button in rustdoc

This button
![image](https://user-images.githubusercontent.com/4687791/120210874-da4d1380-c262-11eb-9987-9145c4354029.png)
-rw-r--r--src/librustdoc/html/render/print_item.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index e06168c708c..42d7e9c8c93 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -81,7 +81,8 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer,
         "<button id=\"copy-path\" onclick=\"copy_path(this)\">\
             <img src=\"{static_root_path}clipboard{suffix}.svg\" \
                 width=\"19\" height=\"18\" \
-                alt=\"Copy item import\">\
+                alt=\"Copy item import\" \
+                title=\"Copy item import to clipboard\">\
          </button>",
         static_root_path = page.get_static_root_path(),
         suffix = page.resource_suffix,