Skip to content

Commit 21b3c43

Browse files
authored
Merge pull request #122 from bcdev/yogesh-xxx-update-radiogroup
Apply styles correctly in `RadioGroup` component
2 parents 96c1ef3 + 52e1bef commit 21b3c43

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

chartlets.js/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Implemented dynamic resizing for Vega Charts when the side panel's
44
width changes.
55
See https://github.com/xcube-dev/xcube/issues/1134
6+
7+
* Styles are now correctly applied to `RadioGroup` component.
68

79
## Version 0.1.5 (from 2025/03/21)
810

chartlets.js/packages/lib/src/plugins/mui/RadioGroup.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import MuiFormControlLabel from "@mui/material/FormControlLabel";
66
import MuiFormLabel from "@mui/material/FormLabel";
77
import { Tooltip } from "./Tooltip";
88

9-
import type { ComponentState, ComponentProps } from "@/index";
9+
import type { ComponentProps, ComponentState } from "@/index";
1010

1111
interface RadioState extends ComponentState {
1212
type: "Radio";
@@ -54,13 +54,14 @@ export function RadioGroup({
5454
};
5555
return (
5656
<Tooltip title={tooltip}>
57-
<MuiFormControl style={style} disabled={disabled}>
57+
<MuiFormControl disabled={disabled}>
5858
<MuiFormLabel>{label}</MuiFormLabel>
5959
<MuiRadioGroup
6060
id={id}
6161
name={name}
6262
row={row}
6363
value={value}
64+
style={style}
6465
onChange={handleChange}
6566
>
6667
{radioButtons &&

0 commit comments

Comments
 (0)