>
{this.props.imageSrc ? (
<span className="d-inline-block position-relative">
+ {/* TODO: Create "Current Iamge" translation for alt text */}
<img
+ alt=""
src={this.props.imageSrc}
height={this.props.rounded ? 60 : ""}
width={this.props.rounded ? 60 : ""}
this.props.rounded ? "rounded-circle" : ""
}`}
/>
- <a
+ <button
+ className="position-absolute d-block p-0 end-0 border-0 top-0 bg-transparent"
+ type="button"
onClick={linkEvent(this, this.handleRemoveImage)}
aria-label={I18NextService.i18n.t("remove")}
>
<Icon icon="x" classes="mini-overlay" />
- </a>
+ </button>
</span>
) : (
<span className="btn btn-secondary">{this.props.uploadTitle}</span>