From 1a7473bbce93a8f853ee61400ed821e7397f3c38 Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Thu, 1 Feb 2024 11:53:08 +0100 Subject: [PATCH] :recycle: #15 - refactor: refactor styling --- src/components/breadcrumbs/breadcrumbs.scss | 12 ++------- src/components/breadcrumbs/breadcrumbs.tsx | 18 ++++--------- src/components/typography/a/a.scss | 15 ++++++++++- src/components/typography/a/a.tsx | 25 +++++++++++++++-- src/components/typography/li/li.scss | 4 +++ src/components/typography/li/li.tsx | 26 +++++------------- src/components/typography/ol/ol.scss | 9 +++++++ src/components/typography/ol/ol.tsx | 30 +++++++++++++-------- src/components/typography/p/p.tsx | 1 + src/settings/tokens.css | 2 +- 10 files changed, 84 insertions(+), 58 deletions(-) diff --git a/src/components/breadcrumbs/breadcrumbs.scss b/src/components/breadcrumbs/breadcrumbs.scss index f2f013d4..ad406294 100644 --- a/src/components/breadcrumbs/breadcrumbs.scss +++ b/src/components/breadcrumbs/breadcrumbs.scss @@ -20,16 +20,8 @@ } } - &__link { - cursor: pointer; - text-decoration: none; - color: inherit; - font-size: var(--typography-font-size-body-xs); - } - - &__separator { + .mykn-icon { color: var(--theme-color-primary-800); - height: 20px; - width: 20px; + margin: 0 var(--spacing-h-xs); } } diff --git a/src/components/breadcrumbs/breadcrumbs.tsx b/src/components/breadcrumbs/breadcrumbs.tsx index 67884725..baef6e6c 100644 --- a/src/components/breadcrumbs/breadcrumbs.tsx +++ b/src/components/breadcrumbs/breadcrumbs.tsx @@ -1,4 +1,3 @@ -import clsx from "clsx"; import React from "react"; import { Outline } from "../icon"; @@ -37,28 +36,21 @@ export const Breadcrumbs: React.FC = ({ }) => { return (