Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

779 B
Raw Blame
// BAD fixture: focus rings removed on focusable elements; fonts not taken from tokens.
import { createStaticStyles, cssVar } from '@lobehub/ui';

export const styles = createStaticStyles(({ css }) => ({
  button: css`
    &:focus {
      outline: none; /* expect: LOBE-OUTLINE-NONE */
    }
  `,
}));

export const Field = ({ code }: { code?: boolean }) => (
  <>
    <input style={{ outline: 'none' }} /> {/* expect: LOBE-OUTLINE-NONE */}
    <span style={{ fontFamily: code ? 'monospace' : undefined }}>id</span> {/* expect: LOBE-FONT-FAMILY */}
    <span style={{ fontFamily: 'Inter', color: cssVar.colorText }}>name</span> {/* expect: LOBE-FONT-FAMILY */}
    <span style={{ fontFamily: 'var(--font-mono, monospace)' }}>hash</span> {/* expect: LOBE-FONT-FAMILY */}
  </>
);