-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/accordion component #813
Feature/accordion component #813
Conversation
4e1d2ec
to
4ebc9f4
Compare
New components should adhere to the Stencil style guide; Component files should also follow this pattern; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good, just a couple of small comments 😊
packages/web-components/src/components/ic-back-to-top/readme.md
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion-group/ic-accordion-group.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.css
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.css
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.css
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.tsx
Outdated
Show resolved
Hide resolved
be397a8
to
7e5e2ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a small bug where if you click see all, but then manually close the accordions, it still says hide all even though they are all hidden.
Screen.Recording.2023-06-29.at.13.43.36.mov
586ca30
to
ed2e8fa
Compare
ed2e8fa
to
1d9b938
Compare
00ec242
to
45fbfec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke to designers and the borders should use the border default variable set up in #735. Other than that, looks great!
packages/web-components/src/components/ic-accordion/ic-accordion.css
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.css
Outdated
Show resolved
Hide resolved
970d593
to
78b2356
Compare
packages/web-components/src/components/ic-accordion-group/ic-accordion-group.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few comments - everything else looks great though!
packages/web-components/src/components/ic-accordion-group/ic-accordion-group.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion-group/ic-accordion-group.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion-group/ic-accordion-group.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.stories.mdx
Show resolved
Hide resolved
packages/web-components/src/components/ic-accordion/ic-accordion.stories.mdx
Show resolved
Hide resolved
78b2356
to
f40abc4
Compare
d323fa6
to
c739f7c
Compare
Just a small one, looks like the background colour for 'light text' and 'parent' stories are mixed up. |
There are a couple of private variables that can be brought up to the top of the class in
|
be3ef3f
to
e6d2231
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The disabled accordion seems to still have a click state, I think the behaviour should be that it shouldn't change background colour when clicked.
Screen.Recording.2023-07-26.at.13.34.56.mov
d099f58
to
fbe3996
Compare
adds accordion component mi6#240
fbe3996
to
c4a33a5
Compare
Summary of the changes
Creates accordion and accordion-group.
Related issue
#240
Deployed:
https://j212122.github.io/ic-ui-kit/branches/feature/accordion-component/web-components/?path=/story/web-components-accordion--default-story
Checklist