Skip to content

Commit

Permalink
[FormControlLabel][docs] Don't use unintuitive label position on chec… (
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova authored Oct 17, 2024
1 parent 064fa67 commit 4f0301d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ export default function FormControlLabelPosition() {
<FormControl component="fieldset">
<FormLabel component="legend">Label placement</FormLabel>
<FormGroup aria-label="position" row>
<FormControlLabel
value="top"
control={<Checkbox />}
label="Top"
labelPlacement="top"
/>
<FormControlLabel
value="start"
control={<Checkbox />}
label="Start"
labelPlacement="start"
/>
<FormControlLabel
value="bottom"
control={<Checkbox />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ export default function FormControlLabelPosition() {
<FormControl component="fieldset">
<FormLabel component="legend">Label placement</FormLabel>
<FormGroup aria-label="position" row>
<FormControlLabel
value="top"
control={<Checkbox />}
label="Top"
labelPlacement="top"
/>
<FormControlLabel
value="start"
control={<Checkbox />}
label="Start"
labelPlacement="start"
/>
<FormControlLabel
value="bottom"
control={<Checkbox />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ export default function FormControlLabelPlacement() {
name="position"
defaultValue="top"
>
<FormControlLabel
value="top"
control={<Radio />}
label="Top"
labelPlacement="top"
/>
<FormControlLabel
value="start"
control={<Radio />}
label="Start"
labelPlacement="start"
/>
<FormControlLabel
value="bottom"
control={<Radio />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ export default function FormControlLabelPlacement() {
name="position"
defaultValue="top"
>
<FormControlLabel
value="top"
control={<Radio />}
label="Top"
labelPlacement="top"
/>
<FormControlLabel
value="start"
control={<Radio />}
label="Start"
labelPlacement="start"
/>
<FormControlLabel
value="bottom"
control={<Radio />}
Expand Down
12 changes: 0 additions & 12 deletions docs/data/material/components/switches/FormControlLabelPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ export default function FormControlLabelPosition() {
<FormControl component="fieldset">
<FormLabel component="legend">Label placement</FormLabel>
<FormGroup aria-label="position" row>
<FormControlLabel
value="top"
control={<Switch color="primary" />}
label="Top"
labelPlacement="top"
/>
<FormControlLabel
value="start"
control={<Switch color="primary" />}
label="Start"
labelPlacement="start"
/>
<FormControlLabel
value="bottom"
control={<Switch color="primary" />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ export default function FormControlLabelPosition() {
<FormControl component="fieldset">
<FormLabel component="legend">Label placement</FormLabel>
<FormGroup aria-label="position" row>
<FormControlLabel
value="top"
control={<Switch color="primary" />}
label="Top"
labelPlacement="top"
/>
<FormControlLabel
value="start"
control={<Switch color="primary" />}
label="Start"
labelPlacement="start"
/>
<FormControlLabel
value="bottom"
control={<Switch color="primary" />}
Expand Down

0 comments on commit 4f0301d

Please sign in to comment.