Skip to content

Commit f0580bc

Browse files
authored
fix(print): migrate Print component from BEM to Tailwind CSS (#8110)
1 parent f0dca9a commit f0580bc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/Print/Print.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ export default function Print(props) {
3131
}
3232

3333
return (
34-
<div className="sidebar-item sidebar-item--disabled">
34+
<div className="relative flex flex-wrap text-[15px] my-[0.6em]">
3535
<BarIcon
36-
className="sidebar-item__toggle"
36+
className="flex-none mt-[0.125em] mr-2 text-[#aaa] dark:text-[#69a8ee]"
3737
width={15}
3838
height={17}
3939
fill="#175d96"
4040
/>
4141
<a
42-
className="sidebar-item__title flex items-center flex-nowrap"
42+
className="flex-1 max-w-[85%] overflow-hidden whitespace-nowrap text-ellipsis flex items-center flex-nowrap text-[#2b3a42] dark:text-[#b8b8b8]"
4343
href={printUrl}
4444
rel="nofollow noopener noreferrer"
4545
title="Print"
4646
target="_blank"
4747
>
4848
Print Section
49-
<img src={icon} alt="Printer Icon" className="h-[20px] w-[27px]" />
49+
<img src={icon} width={27} height={20} alt="Printer Icon" />
5050
</a>
5151
</div>
5252
);

0 commit comments

Comments
 (0)