Skip to content

Commit 4eeded2

Browse files
committed
Remove before/after pseudo-element classes from TextRotater
Delete Tailwind pseudo-element classes (before:... and after:...) from TextRotater.jsx that previously added 3px gradient bars at the component's top and bottom. This simplifies the component's className and removes the extra pseudo-element background styling.
1 parent 046a2b1 commit 4eeded2

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/components/TextRotater/TextRotater.jsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ export default class TextRotater extends PureComponent {
4040
<div
4141
className="
4242
relative inline-block overflow-hidden align-bottom px-[0.3em]
43-
before:content-[''] before:absolute before:left-0 before:w-full before:h-[3px]
44-
before:bottom-0 before:z-10
45-
before:bg-linear-to-t before:from-[#2b3a42] before:to-transparent
46-
after:content-[''] after:absolute after:left-0 after:w-full after:h-[3px]
47-
after:top-0
48-
after:bg-linear-to-b after:from-[#2b3a42] after:to-transparent
4943
"
5044
>
5145
<div

0 commit comments

Comments
 (0)