Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
c0634c94
Commit
c0634c94
authored
Apr 01, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Apr 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract muted-link component pattern
parent
ce96788f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
AnnotationShareInfo.js
src/sidebar/components/Annotation/AnnotationShareInfo.js
+1
-4
AnnotationTimestamps.js
src/sidebar/components/Annotation/AnnotationTimestamps.js
+1
-1
_index.scss
src/styles/sidebar/components/_index.scss
+13
-4
No files found.
src/sidebar/components/Annotation/AnnotationShareInfo.js
View file @
c0634c94
...
...
@@ -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"
>
...
...
src/sidebar/components/Annotation/AnnotationTimestamps.js
View file @
c0634c94
...
...
@@ -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
}
...
...
src/styles/sidebar/components/_index.scss
View file @
c0634c94
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment