FarmData2 / FarmData2

Main development repository for the FarmData2 Drupal module.
Other
1 stars 9 forks source link

SoilDisturbance: Nest component in BAccordion #205

Closed braughtg closed 1 week ago

braughtg commented 1 month ago

The SoilDisturbance component is typically nested inside of a BAccordion element when used in a page (e.g. Direct Seeding, Transplanting). Currently the BAccordion element is in the pages. It should be moved into the component so that it can just be a part of the component any time it is used.

This should also include adding a prop (includeAccordion, default:true) to the SoilDisturbance component that optionally omits the BAccordion so that the component can be used without the accordion if desired (e.g. in a Soil Disturbance form).

To do:

braughtg commented 1 week ago

I no longer think this is the correct approach. This would required duplication of all of the code inside the accordion so that it could be displayed or not.