visitscotland / vs-component-library

VisitScotland Component Library
Other
0 stars 0 forks source link

Ds 500 investigate solution on front end to handle headings of nested and non nested articles #441

Closed chesterroberts-vs closed 1 month ago

chesterroberts-vs commented 1 month ago

Updated AccordionItem, Article, ModuleWrapper and StyledList to include headingLevel prop that overrides the default level of the heading. This will be used when the component is used within another component.

The StyleList component has had the heading and intro section removed and will use the ModuleWrapper component instead.

The ModuleWrapper component has had a BusinessSupport prop added which sets the text alignment and the column sizes.