Bug 1529606 - Add Copy Rule button to Changes panel. r=pbro
authorRazvan Caliman <rcaliman@mozilla.com>
Mon, 25 Feb 2019 17:45:40 +0000
changeset 11151 b00807da3b3a29bbdca5d36762b7a1a95251dc40
parent 11150 bf6ea8c47dc3b4e0e76fb605cdd3be4a5d941764
child 11152 910f667a3b464b81820fedf6709f97222e639362
push id119
push userflodolo@mozilla.com
push dateThu, 28 Feb 2019 13:45:37 +0000
reviewerspbro
bugs1529606
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: 96e76fdfd8b247997bbf9545ca043934f7279608 X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 373e61d5d56f98a293423d7662a4de7a1534ef68 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: c2fca1944d8c54d01a5e2d7e13d965e4a6597307
devtools/client/changes.properties
--- 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.
 changes.contextmenu.selectAll.accessKey=A