imagestable: request.json link now non-styled

By adding custom CSS For the `ib-subdued-link` class the link now looks
like normal text. This approach was chosen as other approaches such as
clicking a non-rendered link cause serious ruckus in the test suite.

This resolves: #805.
This commit is contained in:
Simon de Vlieger 2022-10-25 14:39:17 +02:00 committed by Lucas Garfield
parent 87b853fc13
commit 35afba1bf2
3 changed files with 15 additions and 2 deletions

View file

@ -181,10 +181,11 @@ const ImagesTable = () => {
{
title: (
<a
className="ib-subdued-link"
href={`data:text/plain;charset=utf-8,${encodeURIComponent(
JSON.stringify(compose.request)
)}`}
download="request.json"
download={`request-${compose.id}.json`}
>
Download compose request (.json)
</a>

View file

@ -8,3 +8,13 @@
// Remove border between a compose and its expanded detail
border-bottom-style: none;
}
.ib-subdued-link {
color: inherit;
text-decoration: none;
&:hover {
color: inherit;
text-decoration: none;
}
}