Adds CLI hooks (IDs) to certain elements (#592)

* Adds CLI hooks (ids) to certain elements

* Update Carbon.js

* Update ExportMenu.js
main
Miloš Sutanovac 6 years ago committed by Michael Fix
parent 25eb5b325e
commit 09397baf7b

@ -242,7 +242,7 @@ class Carbon extends React.PureComponent {
return ( return (
<div className="section"> <div className="section">
<div className="export-container" ref={this.getRef}> <div className="export-container" ref={this.getRef} id="export-container">
{content} {content}
<div className="twitter-png-fix" /> <div className="twitter-png-fix" />
</div> </div>

@ -37,7 +37,7 @@ class ExportMenu extends React.PureComponent {
const { isVisible } = this.state const { isVisible } = this.state
return ( return (
<div className="export-container"> <div className="export-container" id="export-menu">
<Button <Button
selected={isVisible} selected={isVisible}
className="exportButton" className="exportButton"
@ -85,10 +85,10 @@ class ExportMenu extends React.PureComponent {
<div className="save-container"> <div className="save-container">
<span>Save as</span> <span>Save as</span>
<div> <div>
<button onClick={this.handleExport('png')} className="save-button"> <button onClick={this.handleExport('png')} className="save-button" id="export-png">
PNG PNG
</button> </button>
<button onClick={this.handleExport('svg')} className="save-button"> <button onClick={this.handleExport('svg')} className="save-button" id="export-svg">
SVG SVG
</button> </button>
</div> </div>

Loading…
Cancel
Save