Skip to content

Commit

Permalink
Revert "test(FormControl): update to include disabled leading visuals (
Browse files Browse the repository at this point in the history
…#5347)"

This reverts commit 17637a8.
  • Loading branch information
francinelucca committed Dec 5, 2024
1 parent ec83cdb commit 916789d
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 20 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 2 additions & 20 deletions packages/react/src/FormControl/FormControl.features.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
} from '..'
import {MarkGithubIcon, TriangleDownIcon} from '@primer/octicons-react'
import type {ItemInput} from '../deprecated/ActionList/List'
import {Stack} from '../Stack'

export default {
title: 'Components/FormControl/Features',
Expand Down Expand Up @@ -340,7 +339,7 @@ export const WithSelectPanel = () => {
}

export const WithLeadingVisual = () => (
<Stack gap="none">
<Box>
<FormControl>
<FormControl.Label>Option one</FormControl.Label>
<FormControl.LeadingVisual>
Expand All @@ -357,24 +356,7 @@ export const WithLeadingVisual = () => (
<Checkbox />
<FormControl.Caption>This one has a caption</FormControl.Caption>
</FormControl>

<FormControl disabled>
<FormControl.Label>Option three</FormControl.Label>
<FormControl.LeadingVisual>
<MarkGithubIcon />
</FormControl.LeadingVisual>
<Checkbox />
</FormControl>

<FormControl disabled>
<FormControl.Label>Option four</FormControl.Label>
<FormControl.LeadingVisual>
<MarkGithubIcon />
</FormControl.LeadingVisual>
<Checkbox />
<FormControl.Caption>This one has a caption</FormControl.Caption>
</FormControl>
</Stack>
</Box>
)

export const DisabledInputs = () => (
Expand Down

0 comments on commit 916789d

Please sign in to comment.