app: fix 'added' tag typography; test linaria
This commit is contained in:
@@ -8,6 +8,13 @@ import { Module } from "./models";
|
|||||||
import Icon from "@/src/components/Icon/Icon";
|
import Icon from "@/src/components/Icon/Icon";
|
||||||
import { Combobox } from "@kobalte/core/combobox";
|
import { Combobox } from "@kobalte/core/combobox";
|
||||||
import { useClickOutside } from "@/src/hooks/useClickOutside";
|
import { useClickOutside } from "@/src/hooks/useClickOutside";
|
||||||
|
import { css } from "@linaria/core";
|
||||||
|
|
||||||
|
// TODO: Move this to typography styles
|
||||||
|
const tag = css`
|
||||||
|
font-size: var(--font-size-xs);
|
||||||
|
font-weight: var(--font-weight-semibold);
|
||||||
|
`;
|
||||||
|
|
||||||
interface FlyoutProps {
|
interface FlyoutProps {
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
@@ -78,9 +85,7 @@ export const SelectService = (props: FlyoutProps) => {
|
|||||||
<Combobox.ItemLabel class="flex gap-1.5">
|
<Combobox.ItemLabel class="flex gap-1.5">
|
||||||
<Show when={item.raw.instance_refs.length > 0}>
|
<Show when={item.raw.instance_refs.length > 0}>
|
||||||
<div class="flex items-center rounded bg-[#76FFA4] px-1 py-0.5">
|
<div class="flex items-center rounded bg-[#76FFA4] px-1 py-0.5">
|
||||||
<Typography hierarchy="label" weight="bold" size="xxs">
|
<span class={tag}>Added</span>
|
||||||
Added
|
|
||||||
</Typography>
|
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
Reference in New Issue
Block a user