Skip to content

Commit

Permalink
fix: HTML structure for button alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mhomolak committed Jan 12, 2018
1 parent d8e69c1 commit 7731f0a
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/js/component-owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ class ComponentOwner extends React.Component {
return (
<div id={opts.id} className="o-coach-mark__container" style={{ zIndex: opts.zIndex || 1200 }}>
<div className="o-coach-mark__content-container">
<button
className="o-coach-mark__close-icon"
onClick={(event) => removeCoachMark(event)}
style={meatballTitleStyle}
>
<svg role="img"
aria-labelledby="r2"
focusable="false"
className="pe-icon--remove-sm-18">
<title id="r2">Close dialog</title>
<use xlinkHref="#remove-sm-18"></use>
</svg>
</button>
<div className={`o-coach-mark__content ${placement}`}>
<div>
{meatball}
Expand All @@ -130,19 +143,7 @@ class ComponentOwner extends React.Component {
</div>
{extras}
</div>
<button
className="o-coach-mark__close-icon"
onClick={(event) => removeCoachMark(event)}
style={meatballTitleStyle}
>
<svg role="img"
aria-labelledby="r2"
focusable="false"
className="pe-icon--remove-sm-18">
<title id="r2">Close dialog</title>
<use xlinkHref="#remove-sm-18"></use>
</svg>
</button>

</div>
</div>
);
Expand Down

0 comments on commit 7731f0a

Please sign in to comment.