Skip to content

Commit

Permalink
fix(UnselectedTag): use semantic button
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChristophe committed Sep 18, 2023
1 parent 2392655 commit 1fa2c6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions components/TagSelector/UnselectedTag.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import { type FC } from 'react';
import styles from 'styles/tagSelector.module.css';
import actionable from 'styles/actionable.module.css';
import { type Tag } from '@eosc-perf/eosc-perf-client';
import clsx from 'clsx';

type UnselectedTagProps = { tag: Tag; select: (tag: Tag) => void };
const UnselectedTag: FC<UnselectedTagProps> = ({ tag, select }) => (
<div
className={clsx(styles['tagBadge'], 'p-1', actionable['actionable'])}
onClick={() => select(tag)}
>
<button className={clsx(styles['tagBadge'], 'p-1')} onClick={() => select(tag)} type="button">
{tag.name}
</div>
</button>
);

export default UnselectedTag;
3 changes: 1 addition & 2 deletions styles/tagSelector.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

.tagBadge {
border: solid 0.1em;
border-radius: 4px;
background-color: unset;
}

.tagBadge:not(:last-child) {
margin-right: 2px;
}

0 comments on commit 1fa2c6b

Please sign in to comment.