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:
parent
87b853fc13
commit
35afba1bf2
3 changed files with 15 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue