Bug 1529606 - Add Copy Rule button to Changes panel. r=pbro
authorRazvan Caliman <rcaliman@mozilla.com>
Mon, 25 Feb 2019 22:20:53 +0000
changeset 11156 c23b36b5769c585bf9727999de85dd97de4048c1
parent 11155 3191ab395d3d7b8b213c0a63c7aa54b1914cd293
child 11157 2246d514e0456f89f1476e253ca6cc0cd0bf05b8
push id119
push userflodolo@mozilla.com
push dateThu, 28 Feb 2019 13:45:37 +0000
Bug 1529606 - Add Copy Rule button to Changes panel. r=pbro Adds a button that shows up when hovering selectors in the Changes panel. When clicked, it invokes the same Copy Rule behavior implemented for the context menu: copies the full content of the rule with changes applied. The added/changed CSS class names use BEM notation. I intend to refactor the Changes panel stylesheet to BEM in a follow-up patch. Differential Revision: https://phabricator.services.mozilla.com/D20808 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: f5629bb3e671ad15ede908de3cc0b2b2be342728 X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 373e61d5d56f98a293423d7662a4de7a1534ef68 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: c2fca1944d8c54d01a5e2d7e13d965e4a6597307
--- a/devtools/client/changes.properties
+++ b/devtools/client/changes.properties
@@ -41,15 +41,19 @@ changes.contextmenu.copyChanges=Copy Cha
 # option in Changes panel context menu which copies all changed CSS declarations from a
 # stylesheet
 changes.contextmenu.copyAllChanges=Copy All Changes
 # LOCALIZATION NOTE (changes.contextmenu.copyRule): Label for "Copy Rule" option in
 # Changes panel context menu which copies the complete contents of a CSS rule.
 changes.contextmenu.copyRule=Copy Rule
+# LOCALIZATION NOTE (changes.contextmenu.copyRuleDescription): Detailed explanation for
+# "Copy Rule" option in Changes panel. Used as title attribute on "Copy Rule" button.
+changes.contextmenu.copyRuleDescription=Copy contents of this CSS rule to clipboard.
 # LOCALIZATION NOTE (changes.contextmenu.selectAll): Label for "Select All" option in the
 # Changes panel context menu to select all text content.
 changes.contextmenu.selectAll=Select All
 # LOCALIZATION NOTE (changes.contextmenu.selectAll.accessKey): Access key for "Select All"
 # option in the Changes panel.