Skip to content

Commit

Permalink
chore: replace old Pencil icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-C committed Nov 8, 2024
1 parent e1cfd24 commit 6f65621
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { DeleteBinLine, PencilFill } from "@ndla/icons/action";
import {
DialogBody,
DialogContent,
Expand Down Expand Up @@ -112,7 +112,7 @@ const SlateCampaignBlock = ({ element, editor, attributes, children }: Props) =>
title={t("campaignBlockForm.title")}
onClick={() => setIsEditing(true)}
>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<IconButton
Expand Down
4 changes: 2 additions & 2 deletions src/components/SlateEditor/plugins/codeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { DeleteBinLine, PencilFill } from "@ndla/icons/action";
import { Code } from "@ndla/icons/editor";
import {
DialogBody,
Expand Down Expand Up @@ -160,7 +160,7 @@ const CodeBlock = ({ attributes, editor, element, children }: Props) => {
title={t("codeEditor.edit")}
aria-label={t("codeEditor.edit")}
>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<IconButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import {
DialogBody,
DialogContent,
Expand Down Expand Up @@ -109,7 +109,7 @@ const SlateContactBlock = ({ element, editor, attributes, children }: Props) =>
aria-label={t("contactBlockForm.edit")}
title={t("contactBlockForm.edit")}
>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<IconButton
Expand Down
4 changes: 2 additions & 2 deletions src/components/SlateEditor/plugins/external/SlateExternal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps, useSelected } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import { Expandable } from "@ndla/icons/editor";
import {
DialogBody,
Expand Down Expand Up @@ -177,7 +177,7 @@ export const SlateExternal = ({ element, editor, attributes, children }: Props)
<StyledFigureButtons contentEditable={false}>
<DialogTrigger asChild>
<IconButton aria-label={editLabel} title={editLabel} variant="secondary" size="small">
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<IconButton
Expand Down
4 changes: 2 additions & 2 deletions src/components/SlateEditor/plugins/file/SlateFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { KeyboardEvent, MouseEvent, useCallback, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { CloseLine, Pencil, DeleteBinLine } from "@ndla/icons/action";
import { CloseLine, PencilFill, DeleteBinLine } from "@ndla/icons/action";
import { CheckboxCircleFill, CheckLine } from "@ndla/icons/editor";
import {
CheckboxControl,
Expand Down Expand Up @@ -176,7 +176,7 @@ export const SlateFile = ({
variant="tertiary"
size="small"
>
<Pencil />
<PencilFill />
</IconButton>
</>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SlateEditor/plugins/image/SlateImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps, useSelected } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import { Link } from "@ndla/icons/common";
import { DialogContent, DialogRoot, DialogTrigger, IconButton } from "@ndla/primitives";
import { SafeLinkIconButton } from "@ndla/safelink";
Expand Down Expand Up @@ -173,7 +173,7 @@ const SlateImage = ({ element, editor, attributes, children, allowDecorative = t
variant="secondary"
size="small"
>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<SafeLinkIconButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import {
DialogBody,
DialogContent,
Expand Down Expand Up @@ -110,7 +110,7 @@ const SlateKeyFigure = ({ element, editor, attributes, children }: Props) => {
aria-label={t("keyFigureForm.edit")}
title={t("keyFigureForm.edit")}
>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<IconButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, AddLine, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, AddLine, DeleteBinLine } from "@ndla/icons/action";
import { DialogContent, DialogRoot, DialogTrigger, IconButton } from "@ndla/primitives";
import { styled } from "@ndla/styled-system/jsx";
import { LinkBlockEmbedData } from "@ndla/types-embed";
Expand Down Expand Up @@ -199,7 +199,7 @@ const SlateLinkBlock = ({ link, onSave, onDelete, allEmbeds, index }: SlateLinkB
<ButtonWrapper>
<DialogTrigger>
<IconButton aria-label={t("linkBlock.edit")} title={t("linkBlock.edit")} size="small">
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<Portal>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SlateEditor/plugins/pitch/SlatePitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import {
DialogBody,
DialogTitle,
Expand Down Expand Up @@ -102,7 +102,7 @@ const SlatePitch = ({ element, editor, attributes, children }: Props) => {
aria-label={t("pitchForm.title")}
title={t("pitchForm.title")}
>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<IconButton
Expand Down
4 changes: 2 additions & 2 deletions src/components/SlateEditor/plugins/related/EditRelated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { MouseEvent, useCallback, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { DragEndEvent } from "@dnd-kit/core";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import {
ComboboxLabel,
DialogBody,
Expand Down Expand Up @@ -168,7 +168,7 @@ const EditRelated = ({ updateArticles, insertExternal, embeds, onInsertBlock }:
}}
title={t("form.content.relatedArticle.changeExternal")}
>
<Pencil />
<PencilFill />
</IconButton>
)}
<IconButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Transforms } from "slate";
import { ReactEditor, RenderElementProps } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import { DialogContent, DialogRoot, DialogTrigger, IconButton } from "@ndla/primitives";
import { styled } from "@ndla/styled-system/jsx";
import { RelatedContentEmbedData, RelatedContentMetaData } from "@ndla/types-embed";
Expand Down Expand Up @@ -184,7 +184,7 @@ const RelatedArticleBox = ({ attributes, editor, element, children }: Props) =>
<ButtonWrapper>
<DialogTrigger asChild>
<IconButton aria-label={t("form.edit")} variant="tertiary" size="small" title={t("form.edit")}>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>

Expand Down
4 changes: 2 additions & 2 deletions src/components/SlateEditor/plugins/video/SlateVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import { Editor, Element, Path, Transforms } from "slate";
import { ReactEditor, RenderElementProps, useSelected } from "slate-react";
import { Portal } from "@ark-ui/react";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { DeleteBinLine, PencilFill } from "@ndla/icons/action";
import { Link } from "@ndla/icons/editor";
import { DialogContent, DialogRoot, DialogTrigger, IconButton } from "@ndla/primitives";
import { SafeLinkIconButton } from "@ndla/safelink";
Expand Down Expand Up @@ -118,7 +118,7 @@ const SlateVideo = ({ attributes, element, editor, children }: Props) => {
variant="secondary"
size="small"
>
<Pencil />
<PencilFill />
</IconButton>
</DialogTrigger>
<SafeLinkIconButton
Expand Down
4 changes: 2 additions & 2 deletions src/containers/NdlaFilm/components/ThemeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { useField } from "formik";
import { MouseEvent } from "react";
import { useTranslation } from "react-i18next";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { DeleteBinLine, PencilFill } from "@ndla/icons/action";
import { ArrowUpShortLine, ArrowDownShortLine } from "@ndla/icons/common";
import { Button, Heading, IconButton } from "@ndla/primitives";
import { styled } from "@ndla/styled-system/jsx";
Expand Down Expand Up @@ -121,7 +121,7 @@ const ThemeEditor = ({ selectedLanguage }: Props) => {
aria-label={t("ndlaFilm.editor.editMovieGroupName")}
title={t("ndlaFilm.editor.editMovieGroupName")}
>
<Pencil />
<PencilFill />
</IconButton>
}
messages={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
import styled from "@emotion/styled";
import { ButtonV2, IconButtonV2 } from "@ndla/button";
import { spacing } from "@ndla/core";
import { AddLine, Pencil, DeleteBinLine } from "@ndla/icons/action";
import { AddLine, PencilFill, DeleteBinLine } from "@ndla/icons/action";
import { Node } from "@ndla/types-taxonomy";
import MenuItemButton from "./components/MenuItemButton";
import MenuItemEditField from "./components/MenuItemEditField";
Expand Down Expand Up @@ -110,7 +110,7 @@ const EditGrepCodes = ({ node, editModeHandler: { editMode, toggleEditMode } }:
dataTestid="addGrepCopde"
onClose={() => setAddingNewGrepCode(!addingNewGrepCode)}
onSubmit={addGrepCode}
icon={<Pencil />}
icon={<PencilFill />}
placeholder={t("form.grepCodes.placeholder")}
/>
) : (
Expand All @@ -125,7 +125,7 @@ const EditGrepCodes = ({ node, editModeHandler: { editMode, toggleEditMode } }:
return (
<>
<MenuItemButton data-testid="editGrepCodes" onClick={() => toggleEditModes()}>
<RoundIcon small icon={<Pencil />} />
<RoundIcon small icon={<PencilFill />} />
{t("taxonomy.grepCodes.edit")}
</MenuItemButton>
{editMode === "editGrepCodes" && grepCodesList}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
import { Portal } from "@ark-ui/react";
import { useQueryClient } from "@tanstack/react-query";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import {
Button,
DialogBody,
Expand Down Expand Up @@ -95,7 +95,7 @@ const ChangeNodeName = ({ editModeHandler: { editMode, toggleEditMode }, node }:
{/* TODO: Remove consumeCss once MenuItemButton is updated */}
<DialogTrigger asChild consumeCss>
<MenuItemButton data-testid="changeNodeNameButton">
<RoundIcon small icon={<Pencil />} />
<RoundIcon small icon={<PencilFill />} />
{t("taxonomy.changeName.buttonTitle")}
</MenuItemButton>
</DialogTrigger>
Expand Down
4 changes: 2 additions & 2 deletions src/containers/TaxonomyVersions/components/Version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import styled from "@emotion/styled";
import { useQueryClient } from "@tanstack/react-query";
import { IconButtonV2 } from "@ndla/button";
import { colors, spacing } from "@ndla/core";
import { Pencil, DeleteBinLine } from "@ndla/icons/action";
import { PencilFill, DeleteBinLine } from "@ndla/icons/action";
import { Launch } from "@ndla/icons/common";
import { Keyhole } from "@ndla/icons/editor";
import { SafeLink } from "@ndla/safelink";
Expand Down Expand Up @@ -161,7 +161,7 @@ const Version = ({ version }: Props) => {
onClick={() => setIsEditing((prev) => !prev)}
title={t("taxonomyVersions.editVersionTooltip")}
>
<Pencil />
<PencilFill />
</IconButtonV2>
<IconButtonV2
variant="ghost"
Expand Down

0 comments on commit 6f65621

Please sign in to comment.