Skip to content

Commit

Permalink
Adds underline to hyperlink (fixes #233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Feb 27, 2024
1 parent 2e4d85c commit 55b29cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/components/psc/checklist-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Icon from "~/components/core/icon";
import type { Priority, Section, Checklist } from '../../types/PSC';
import { marked } from "marked";
import { useLocalStorage } from "~/hooks/useLocalStorage";
import styles from './psc.module.css';


export default component$((props: { section: Section }) => {

Expand Down Expand Up @@ -301,7 +303,7 @@ export default component$((props: { section: Section }) => {
{item.priority}
</div>
</td>
<td dangerouslySetInnerHTML={parseMarkdown(item.details)}></td>
<td class={styles.checklistItemDescription} dangerouslySetInnerHTML={parseMarkdown(item.details)}></td>
</tr>
)}
)}
Expand Down
6 changes: 6 additions & 0 deletions web/src/components/psc/psc.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
/* I couldn't figure out how to do this with Tailwind.... */
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.checklistItemDescription {
a {
text-decoration: underline;
}
}

0 comments on commit 55b29cb

Please sign in to comment.