cauldron icon indicating copy to clipboard operation
cauldron copied to clipboard

Update basic accordions to match UXPin

Open bobbyomari opened this issue 3 years ago • 4 comments

The current accordion in Cauldron is outdated and needs to be updated to the latest iteration of accordion styles with two versions - basic and advanced. We no longer use the blue bar as a hover state and has been updated as such to be used as an active state instead (when the accordion item is open). There are also some changes to the icon used, box-shadow (only applied when accordion group is open), and spacing.

UXPin

bobbyomari avatar Jan 18 '23 19:01 bobbyomari

Related: #716

Update styles and add "advanced variant of accordion". The advanced variant of the accordion would need to use ExpandCollapsePanel under the hood and match the styles of the accordion in order to support the action buttons on the right side of the header.

scurker avatar Feb 21 '23 19:02 scurker

Also related #902

scurker avatar Feb 21 '23 20:02 scurker

The box shadow needs to encompass the full element when expanded, not just the panel.

scurker avatar Mar 07 '23 19:03 scurker

Regarding the spacing of the component, the trigger text should be aligned to the left the same as the content text should be. I think we just need to adjust the left padding of the trigger element.

scurker avatar Mar 07 '23 19:03 scurker