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 (
<div className="section">
<div className="export-container" ref={this.getRef}>
<div className="export-container" ref={this.getRef} id="export-container">
{content}
<div className="twitter-png-fix" />
</div>

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

Loading…
Cancel
Save