From e72606cfcd282ea7943dabb6344bacf2ac110020 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Wed, 17 May 2023 15:18:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(react)=20make=20inputs=20labels=20?= =?UTF-8?q?bolder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current labels of radio, checkbox and switches were not bold enough to match the figma sketches. --- .changeset/unlucky-parrots-grab.md | 5 +++++ packages/react/src/components/Forms/Checkbox/tokens.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/unlucky-parrots-grab.md diff --git a/.changeset/unlucky-parrots-grab.md b/.changeset/unlucky-parrots-grab.md new file mode 100644 index 0000000..183bb1a --- /dev/null +++ b/.changeset/unlucky-parrots-grab.md @@ -0,0 +1,5 @@ +--- +"@openfun/cunningham-react": minor +--- + +make inputs labels bolder diff --git a/packages/react/src/components/Forms/Checkbox/tokens.ts b/packages/react/src/components/Forms/Checkbox/tokens.ts index ffda2b7..77ee820 100644 --- a/packages/react/src/components/Forms/Checkbox/tokens.ts +++ b/packages/react/src/components/Forms/Checkbox/tokens.ts @@ -3,7 +3,7 @@ import { DefaultTokens } from "@openfun/cunningham-tokens"; export const tokens = (defaults: DefaultTokens) => ({ "background-color--hover": defaults.theme.colors["greyscale-200"], "font-size": defaults.theme.font.sizes.m, - "font-weight": defaults.theme.font.weights.medium, + "font-weight": defaults.theme.font.weights.bold, color: defaults.theme.colors["greyscale-900"], "border-color": defaults.theme.colors["greyscale-300"], "border-radius": "2px",