Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components-Tags): remove border radius #914

Merged
merged 1 commit into from
Jun 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions components/Article/__snapshots__/Article.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -20,7 +20,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</a>
</span>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(55, 178, 77);"
>
<a
Expand All @@ -30,7 +30,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</a>
</span>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(112, 72, 232);"
>
<a
Expand All @@ -45,7 +45,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
1 Basic Notes
</h1>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand All @@ -71,7 +71,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="edit"
Expand All @@ -97,7 +97,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="clock-circle"
Expand Down Expand Up @@ -445,7 +445,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(24, 144, 255);"
>
<a
Expand All @@ -460,7 +460,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
1 Basic Notes
</h1>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand All @@ -486,7 +486,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="edit"
Expand All @@ -512,7 +512,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="clock-circle"
Expand Down
8 changes: 4 additions & 4 deletions components/PostsGrid/__snapshots__/PostCard.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`PostCard should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -24,7 +24,7 @@ exports[`PostCard should render correctly (snapshot) 1`] = `
1 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -106,7 +106,7 @@ exports[`PostCard should render correctly with partial data (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(66, 99, 235);"
>
<a
Expand All @@ -121,7 +121,7 @@ exports[`PostCard should render correctly with partial data (snapshot) 1`] = `
1 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down
40 changes: 20 additions & 20 deletions components/PostsGrid/__snapshots__/PostsGrid.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -27,7 +27,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
1 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -104,7 +104,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -119,7 +119,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
2 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -200,7 +200,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -215,7 +215,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
3 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -296,7 +296,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -311,7 +311,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
4 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -393,7 +393,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -408,7 +408,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
5 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -497,7 +497,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -512,7 +512,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
1 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -589,7 +589,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -604,7 +604,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
2 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -685,7 +685,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -700,7 +700,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
3 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -785,7 +785,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -800,7 +800,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
4 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down Expand Up @@ -882,7 +882,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 text-base font-extrabold"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -897,7 +897,7 @@ exports[`PostsGrid should render correctly (snapshot) 1`] = `
5 Basic Notes
</h2>
<span
class="ant-tag mt-1 inline-flex items-center justify-center border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand Down
2 changes: 1 addition & 1 deletion components/Tags/IconTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const IconTag = ({ tag, icon }: Props): JSX.Element => (
<Tag
className={cx(
'mt-1 inline-flex items-center justify-center',
'border-black bg-black text-base font-extrabold text-light',
'rounded-none border-black bg-black text-base font-extrabold text-light',
'dark:border-light dark:bg-light dark:text-dark'
)}
>
Expand Down
5 changes: 4 additions & 1 deletion components/Tags/LinkTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const LinkTag = ({
color = getColorByName(tag),
className,
}: Props): JSX.Element => (
<Tag color={color} className={cx('mb-1 text-base font-extrabold', className)}>
<Tag
color={color}
className={cx('mb-1 rounded-none text-base font-extrabold', className)}
>
<Link href={href}>{tag}</Link>
</Tag>
);
Expand Down
Loading