diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 04b256fd3e..0eb8898d21 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -14,6 +14,13 @@ // /* CLEAR */ +a { + font: inherit; + color: var(--theme-content-color); + &:hover { color: var(--theme-caption-color); } + &:active { color: var(--theme-content-color); } + &:visited { color: var(--theme-content-color); } +} button { display: flex; justify-content: center; diff --git a/packages/ui/src/components/Link.svelte b/packages/ui/src/components/Link.svelte new file mode 100644 index 0000000000..0093d404b7 --- /dev/null +++ b/packages/ui/src/components/Link.svelte @@ -0,0 +1,53 @@ + + + + + {#if icon} + + {#if typeof (icon) === 'string'} + + {:else} + + {/if} + + {/if} + {label} + + + diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 6667ff6c5d..72e1cc7ca6 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -51,6 +51,7 @@ export { default as EditWithIcon } from './components/EditWithIcon.svelte' export { default as Loading } from './components/Loading.svelte' export { default as Popup } from './components/Popup.svelte' export { default as CircleButton } from './components/CircleButton.svelte' +export { default as Link } from './components/Link.svelte' export { default as IconAdd } from './components/icons/Add.svelte' export { default as IconClose } from './components/icons/Close.svelte' diff --git a/plugins/recruit-resources/src/components/DialogHeader.svelte b/plugins/recruit-resources/src/components/DialogHeader.svelte index b15bacd3e2..3d98a1e1dd 100644 --- a/plugins/recruit-resources/src/components/DialogHeader.svelte +++ b/plugins/recruit-resources/src/components/DialogHeader.svelte @@ -19,8 +19,9 @@ import type { Ref, Space, Doc } from '@anticrm/core' import { generateId } from '@anticrm/core' - import { EditBox, Button, CircleButton, Grid, Label, showModal } from '@anticrm/ui' + import { EditBox, Button, CircleButton, Grid, Label, showModal, Link } from '@anticrm/ui' import AvatarEditor from './AvatarEditor.svelte' + import File from './icons/File.svelte' import FileUpload from './icons/FileUpload.svelte' import Edit from './icons/Edit.svelte' import Twitter from './icons/Twitter.svelte' @@ -105,7 +106,7 @@
{#if resumeName} - {resumeName} + {:else}