mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
933f6a07ca
* Added rudimentary context menu hook and menu UI * Added backend support for copying a value at a specific path for the inspected element * Added backend support for storing a value (at a specified path) as a global variable * Added special casing to enable copying undefined/unserializable values to the clipboard * Added copy and store-as-global context menu options to selected element props panel * Store global variables separately, with auto-incremented name (like browsers do) * Added tests for new copy and store-as-global backend functions * Fixed some ownerDocument/contentWindow edge cases * Refactored context menu to support dynamic options Used this mechanism to add a conditional menu option for inspecting the current value (if it's a function) * Renamed "safeSerialize" to "serializeToString" and added inline comment
7 lines
158 B
CSS
7 lines
158 B
CSS
.ContextMenu {
|
|
position: absolute;
|
|
background-color: var(--color-context-background);
|
|
border-radius: 0.25rem;
|
|
overflow: hidden;
|
|
z-index: 10000002;
|
|
} |