From 890d7e7f3a6ecf2fb2873a409029ee9d36b8560e Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Sat, 14 Dec 2024 19:31:33 +0100 Subject: [PATCH] fix: add missing CSS injection to Checkbox in React --- .changeset/pretty-pets-battle.md | 5 +++++ packages/components-react/checkbox-react/src/css.tsx | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changeset/pretty-pets-battle.md diff --git a/.changeset/pretty-pets-battle.md b/.changeset/pretty-pets-battle.md new file mode 100644 index 00000000000..afe21465c8e --- /dev/null +++ b/.changeset/pretty-pets-battle.md @@ -0,0 +1,5 @@ +--- +"@utrecht/checkbox-react": patch +--- + +Add missing CSS injection to Checkbox in React. diff --git a/packages/components-react/checkbox-react/src/css.tsx b/packages/components-react/checkbox-react/src/css.tsx index 20ea58bb235..84b7e2f522c 100644 --- a/packages/components-react/checkbox-react/src/css.tsx +++ b/packages/components-react/checkbox-react/src/css.tsx @@ -4,8 +4,12 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/custom-checkbox-css/dist/index.mjs'; -import '@utrecht/checkbox-css/dist/index.mjs'; +import css from '@utrecht/checkbox-css/dist/index.mjs'; +import css2 from '@utrecht/custom-checkbox-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); +insertStyle(css2); export type { CheckboxProps } from './index'; export { Checkbox } from './index';