-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add Expandable section #55
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
=======================================
Coverage 99.82% 99.83%
=======================================
Files 43 44 +1
Lines 1706 1766 +60
=======================================
+ Hits 1703 1763 +60
Misses 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cec1262
to
c68ce3b
Compare
Hi @digitronik can you review please? The way I'm using in iqe-image-builder can be seen here https://gitlab.cee.redhat.com/insights-qe/iqe-image-builder-plugin/-/merge_requests/123/diffs?commit_id=9cd1f31845166b173bb06d86afc4fb22fffc3271 |
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.
LGTM with first look. Lets discuss some use cases.
c68ce3b
to
33149c4
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.
LGTM
The only one thing which i missed.
33149c4
to
b2a38a2
Compare
LGTM 👍 Thanks @jrusz for this work. The failures are not related to this. I will work on fixes. |
Adding this mainly because of the
child_widget_access
functionality. The widget is fairly simple, I was heavily inspired by thetabs
widget.Adding just a basic test as all the other sections work the same on the page and the text is visible anyway even without expanding. I have a better use case in iqe-image-builder plugin where I need to expand the section to access a button which is actually not clickable before. It works there for me as expected and even watching the test here it does expand the section before trying to read it.
I am not adding a
section_name
property for it as it can change based on whether it's expanded or not so I don't think it's very useful unlike thetab_name
in thetabs
widget...