From 4c27e93c92f0a26766eaec4447a94bdd860b40dd Mon Sep 17 00:00:00 2001 From: Bozhidara Pachilova Date: Tue, 25 Nov 2025 15:57:26 +0200 Subject: [PATCH 1/2] fix(checkbox, radio, switch): add gap for wrapper on sample level --- samples/inputs/checkbox/label/src/CheckboxLabelStyles.css | 1 + samples/inputs/radio/label/src/RadioLabelStyles.css | 5 +++++ samples/inputs/radio/label/src/index.tsx | 3 ++- samples/inputs/switches/label/src/SwitchLabelStyles.css | 5 +++++ samples/inputs/switches/label/src/index.tsx | 5 ++++- 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 samples/inputs/radio/label/src/RadioLabelStyles.css create mode 100644 samples/inputs/switches/label/src/SwitchLabelStyles.css diff --git a/samples/inputs/checkbox/label/src/CheckboxLabelStyles.css b/samples/inputs/checkbox/label/src/CheckboxLabelStyles.css index 7429d5436d..21bf881ab2 100644 --- a/samples/inputs/checkbox/label/src/CheckboxLabelStyles.css +++ b/samples/inputs/checkbox/label/src/CheckboxLabelStyles.css @@ -1,4 +1,5 @@ .wrapper { display: flex; align-items: center; + gap: 0.5rem; } \ No newline at end of file diff --git a/samples/inputs/radio/label/src/RadioLabelStyles.css b/samples/inputs/radio/label/src/RadioLabelStyles.css new file mode 100644 index 0000000000..21bf881ab2 --- /dev/null +++ b/samples/inputs/radio/label/src/RadioLabelStyles.css @@ -0,0 +1,5 @@ +.wrapper { + display: flex; + align-items: center; + gap: 0.5rem; +} \ No newline at end of file diff --git a/samples/inputs/radio/label/src/index.tsx b/samples/inputs/radio/label/src/index.tsx index 9fddfe2556..59dc6cd1eb 100644 --- a/samples/inputs/radio/label/src/index.tsx +++ b/samples/inputs/radio/label/src/index.tsx @@ -1,6 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; +import './RadioLabelStyles.css'; import { IgrRadio, IgrRadioGroup } from 'igniteui-react'; import 'igniteui-webcomponents/themes/light/bootstrap.css'; @@ -16,7 +17,7 @@ export default class RadioLabel extends React.Component {
Apple -
+
Label - Label +
+ Label +
); } From 28302f4a5d0b033f3f8bf6f95ca73a3b9e76d07e Mon Sep 17 00:00:00 2001 From: Bozhidara Pachilova Date: Tue, 25 Nov 2025 16:46:04 +0200 Subject: [PATCH 2/2] refactor(checkbox, radio, switch): align with blazor samples --- samples/inputs/checkbox/label/src/index.tsx | 1 + samples/inputs/radio/label/src/index.tsx | 2 +- samples/inputs/switches/label/src/index.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/inputs/checkbox/label/src/index.tsx b/samples/inputs/checkbox/label/src/index.tsx index 1662d02b09..bb155f3d0b 100644 --- a/samples/inputs/checkbox/label/src/index.tsx +++ b/samples/inputs/checkbox/label/src/index.tsx @@ -14,6 +14,7 @@ export default class CheckboxLabel extends React.Component { public render(): JSX.Element { return (
+ Label
Label diff --git a/samples/inputs/radio/label/src/index.tsx b/samples/inputs/radio/label/src/index.tsx index 59dc6cd1eb..aad11aae18 100644 --- a/samples/inputs/radio/label/src/index.tsx +++ b/samples/inputs/radio/label/src/index.tsx @@ -18,7 +18,7 @@ export default class RadioLabel extends React.Component { Apple
- Label + Orange + Label
Label