Commit c0634c94 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Extract muted-link component pattern

parent ce96788f
......@@ -26,10 +26,7 @@ function AnnotationShareInfo({ group, isPrivate }) {
<>
{group && linkToGroup && (
<Link
classes={classnames(
'flex items-baseline gap-x-1',
'text-color-text-light hover:text-color-text-light hover:underline'
)}
classes={classnames('flex items-baseline gap-x-1', 'p-muted-link')}
href={group.links.html}
target="_blank"
>
......
......@@ -90,7 +90,7 @@ export default function AnnotationTimestamps({
)}
{annotationUrl ? (
<Link
classes="text-color-text-light hover:text-color-text-light hover:underline"
classes="p-muted-link"
target="_blank"
title={created.absolute}
href={annotationUrl}
......
......@@ -35,8 +35,17 @@
@use './TopBar';
@use './VersionInfo';
@layer components {
.p-redacted-text {
@apply line-through grayscale contrast-50 text-color-text-light;
}
// TODO: Put these in @layer components after shared component styles have
// been converted to Tailwind (and are contained in the components layer
// themselves). They need to come after shared-component styles in the
// output stylesheet.
// Applies to <Link>
.p-muted-link {
@apply text-color-text-light hover:text-color-text-light hover:underline;
}
// Applies to any text: strikeout effect
.p-redacted-text {
@apply line-through grayscale contrast-50 text-color-text-light;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment