mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
chore(ui): make link annotations look more like links and less like labels
This commit is contained in:
@@ -71,7 +71,7 @@ exports[`<Alert /> matches snapshot with showAlertmanagers=false showReceiver=fa
|
||||
<a href=\\"http://localhost\\"
|
||||
target=\\"_blank\\"
|
||||
rel=\\"noopener noreferrer\\"
|
||||
class=\\"components-label-with-hover text-nowrap text-truncate badge badge-secondary mr-1\\"
|
||||
class=\\"components-label-with-hover text-nowrap text-truncate badge mr-1 components-grid-annotation-link\\"
|
||||
>
|
||||
<svg aria-hidden=\\"true\\"
|
||||
data-prefix=\\"fas\\"
|
||||
|
||||
@@ -5,7 +5,7 @@ exports[`<RenderLinkAnnotation /> matches snapshot 1`] = `
|
||||
<a href=\\"http://localhost/foo\\"
|
||||
target=\\"_blank\\"
|
||||
rel=\\"noopener noreferrer\\"
|
||||
class=\\"components-label-with-hover text-nowrap text-truncate badge badge-secondary mr-1\\"
|
||||
class=\\"components-label-with-hover text-nowrap text-truncate badge mr-1 components-grid-annotation-link\\"
|
||||
>
|
||||
<svg aria-hidden=\\"true\\"
|
||||
data-prefix=\\"fas\\"
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
.components-grid-annotation {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.components-grid-annotation-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.components-grid-annotation-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ const RenderLinkAnnotation = ({ name, value }) => {
|
||||
href={value}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="components-label-with-hover text-nowrap text-truncate badge badge-secondary mr-1"
|
||||
className="components-label-with-hover text-nowrap text-truncate badge mr-1 components-grid-annotation-link"
|
||||
>
|
||||
<FontAwesomeIcon icon={faExternalLinkAlt} /> {name}
|
||||
</a>
|
||||
|
||||
@@ -57,7 +57,7 @@ exports[`<GroupFooter /> matches snapshot 1`] = `
|
||||
<a href=\\"http://link.example.com\\"
|
||||
target=\\"_blank\\"
|
||||
rel=\\"noopener noreferrer\\"
|
||||
class=\\"components-label-with-hover text-nowrap text-truncate badge badge-secondary mr-1\\"
|
||||
class=\\"components-label-with-hover text-nowrap text-truncate badge mr-1 components-grid-annotation-link\\"
|
||||
>
|
||||
<svg aria-hidden=\\"true\\"
|
||||
data-prefix=\\"fas\\"
|
||||
|
||||
Reference in New Issue
Block a user