Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jwmatthews/656eecc44a8401f386db7a50ed120bed to your computer and use it in GitHub Desktop.

Select an option

Save jwmatthews/656eecc44a8401f386db7a50ed120bed to your computer and use it in GitHub Desktop.
- ruleID: sd-prop-moved-accordion-isexpanded-from-toggle-to-item
labels:
- source=semver-analyzer
- change-type=prop-moved
- package=@patternfly/react-core
- family=Accordion
effort: 3
category: mandatory
description: The `isExpanded` prop moved from <AccordionToggle> to <AccordionItem>
message: |-
The `isExpanded` prop has been removed from <AccordionToggle> and moved to <AccordionItem>.
Move the prop value from <AccordionToggle> to <AccordionItem>.
Before:
<AccordionItem>
<AccordionToggle isExpanded={value} />
</AccordionItem>
After:
<AccordionItem isExpanded={value}>
<AccordionToggle />
</AccordionItem>
when:
frontend.referenced:
pattern: ^isExpanded$
location: JSX_PROP
component: ^AccordionToggle$
from: '@patternfly/react-core'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment