return (
suggestedTitle && (
- <div
- className="mt-1 text-muted small fw-bold pointer"
- role="button"
+ <button
+ type="button"
+ className="mt-1 small border-0 bg-transparent p-0 d-block text-muted fw-bold pointer"
onClick={linkEvent(
{ i: this, suggestedTitle },
copySuggestedTitle
>
{I18NextService.i18n.t("copy_suggested_title", { title: "" })}{" "}
{suggestedTitle}
- </div>
+ </button>
)
);
}
</a>
</div>
<div className="my-2 d-block d-sm-none">
- <a
- className="d-inline-block"
+ <button
+ type="button"
+ className="p-0 border-0 bg-transparent d-inline-block"
onClick={linkEvent(this, this.handleImageExpandClick)}
>
<PictrsImage src={this.imageSrc} />
- </a>
+ </button>
</div>
</>
);
</span>
</li>
<li className="list-inline-item">
- <div
- role="button"
- className="pointer text-monospace"
+ <button
+ type="button"
+ className="pointer text-monospace btn p-0 d-block"
onClick={linkEvent(this, this.handleMessageCollapse)}
>
{this.state.collapsed ? (
- <Icon icon="plus-square" classes="icon-inline" />
+ <Icon icon="plus-square" />
) : (
- <Icon icon="minus-square" classes="icon-inline" />
+ <Icon icon="minus-square" />
)}
- </div>
+ </button>
</li>
</ul>
{this.state.showEdit && (