Skip to content

Commit 9c6a857

Browse files
committed
Make Title clickable on recent snippets page
To improve UX we decided to make title tag clickable so in this case user doesn't need to reach Snow button
1 parent 645a675 commit 9c6a857

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/components/RecentSnippetItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const RecentSnippetItem = ({ snippet }) => {
88
<li className="recent-snippet-item">
99
<div className="recent-snippet-data">
1010
<div>
11-
<span className="recent-snippet-data-title">{snippetTitle}</span>
11+
<Link to={`${snippet.get('id')}`} className="recent-snippet-data-title">{snippetTitle}</Link>
1212
<span className="recent-snippet-data-lang">[ {snippet.get('syntax', 'Text')} ]</span>
1313
</div>
1414
<span className="recent-snippet-data-author">By Guest</span>

src/styles/RecentSnippets.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
&-title
2525
color: text-green
2626
font-size: 19px
27+
text-decoration: none
28+
&:hover
29+
color: text-dark-green
2730
&-lang
2831
margin-left: 15px
2932
color: text-dark

src/styles/common/variables.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ site-bg = color-gainboro-white-s0
44
text-dark = color-night-rider-grey-s1
55
text-light = color-white-white-s100
66
text-green = color-niagara-green-s75
7+
text-dark-green = color-elf-green-green-s82
78
text-grey = color-shady-lady-grey-s0
89

910
border-light = color-white-smoke-white-s0

0 commit comments

Comments
 (0)