Skip to content

Commit

Permalink
Update link icons
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolcher committed Nov 22, 2024
1 parent 077a236 commit ea76083
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { regulations } from "resources/content.ts";
import prependMetaTitle from "utils/metaTitle.ts";
import ParagraphList from "../components/ParagraphList.tsx";

import OpenInNewIcon from "@digitalservicebund/icons/OpenInNew";
import { ROUTE_LAWS, ROUTE_PRINCIPLES } from "../resources/staticRoutes.ts";
import { type Prinzip } from "../utils/strapiData.server.ts";

Expand Down Expand Up @@ -89,6 +90,11 @@ export default function Digitaltauglichkeit_Prinzipien_Detail() {
look="ds-heading-03-bold"
className="inline max-w-full"
/>
<OpenInNewIcon
height="1.2em"
width="1.2em"
className="!inline ml-[0.2em] mb-1"
/>
</Link>
<InlineInfoList
className="bg-blue-200 my-32"
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/components/CustomLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function CustomLink({
to={to}
target={target || (isExternal ? "_blank" : undefined)}
rel={target === "_blank" || isExternal ? "noreferrer" : rel}
className={`inline-flex items-center ${className || ""}`}
className={`inline-flex ${className || ""}`}
>
{children}
{(target === "_blank" || isExternal) && (
Expand Down

0 comments on commit ea76083

Please sign in to comment.