mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
25 stars 25 forks source link

1970 accordion playground #1994

Closed GCHQ-Developer-530 closed 3 months ago

GCHQ-Developer-530 commented 3 months ago

Summary of the changes

Add playground story and update accordion to watch props and use message prop

Related issue

Part of #1970

Checklist

General

Testing

Accessibility

Resize/zoom behaviour

System modes

Testing content extremes

github-actions[bot] commented 3 months ago

View your branch deployment here: https://mi6.github.io/ic-ui-kit/branches/1970-accordion-playground/web-components View your React branch deployment here: https://mi6.github.io/ic-ui-kit/branches/1970-accordion-playground/react View your NextJs branch deployment here: https://mi6.github.io/ic-ui-kit/branches/1970-accordion-playground/nextjs

github-actions[bot] commented 3 months ago

Cypress visual tests failed. View the image diff here: https://github.com/mi6/ic-ui-kit/tree/gh-pages/branches/1970-accordion-playground/cypress-image-diff-screenshots View the html report here: https://github.com/mi6/ic-ui-kit/tree/gh-pages/branches/1970-accordion-playground/cypress-image-diff-html-report

GCHQ-Developer-530 commented 3 months ago

could the appearance control be changed to a radio? - it's currently a select: image

Also, can we add some conditional styling to show the light appearance, like we have with other comps (in react storybook)?

I've updated to black background for light appearance. Weirdly both web components and react appearance controls were already set as radio, so it might be a weird cache thing that select was still showing.

GCHQ-Developer-299 commented 3 months ago

Got a little bit of strange behaviour on the playground regarding the Expanded toggle where it only expands the second acccordion, but if you refresh the canvas it succesfully expands both of them:

https://github.com/mi6/ic-ui-kit/assets/111292477/b5dd8564-a455-426c-9241-9e1c45804f86

GCHQ-Developer-530 commented 3 months ago

Got a little bit of strange behaviour on the playground regarding the Expanded toggle where it only expands the second acccordion, but if you refresh the canvas it succesfully expands both of them:

Screen.Recording.2024-06-19.at.10.44.41.mov

Weird, I can see that behaviour too but only for React storybook. I'll have a look into it

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.

GCHQ-Developer-847 commented 3 months ago

Don't know if this is within the scope of this ticket, but noticed that the appearance of the accordion can be either dark, default or light, but in the Figma designs, there are only dark and light variants. Also the "dark" accordion at the moment is not quite correct in that it is showing black heading text and white body / message text