-
Notifications
You must be signed in to change notification settings - Fork 163
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
No indentation accordion variation #3963
Conversation
Demo starting at https://vanilla-framework-3963.demos.haus |
fdf2a81
to
a5e7bf5
Compare
@carkod on lod the expanded icon hasa + instead of - icon: |
28b5516
to
847fc77
Compare
Fixed, thanks! |
this shouldn't happen, any text next to acheckbox should lign to itself. There was a trick with overflow:auto that does this. |
mm ok but this is happening in the default checkbox example So maybe this should be fixed in checkbox rather than accordion? |
I approved my percy build, but I suppose someone else needs to check them |
@carkod why does the spacing in the percy screenshots change between examples? |
@carkod The style of checkboxes doesn't work in standalone example. Because standalone example uses only accordion. To make checkboxes work we need to add them to standalone SCSS for accordion. We do it for other components that have examples that depend on other styles as well. I think adding |
yes, I don't see another valid use atm - maybe bulletted lists - but lets see if sucha need arises and we can add it |
true. can you please file an issue for it? |
|
8e7dbe0
to
81ba04a
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.
Standalone example needs adding the checkboxes in it.
So the scss/standalone/patterns_accordion.scss
need to @include@include vf-p-form-tick-elements;
to make the standalone example contain styling for checkboxes as well
81ba04a
to
8584641
Compare
b543afe
to
82c3367
Compare
@carkod Thanks for updates. One last thing is adding a label to side navigation to accordion. Add a 'updated' as third param, in same way as currtenly forms have it: You can actually remove the one from form, because it's from previous version of Vanilla. |
This example shows an Accordion pattern variation with less indentation to accomodate checkboxes
82c3367
to
7f14bd6
Compare
Done. Thanks for pointing that out |
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, thanks!
Looks great thanks @carkod ! |
Done
Variation to remove indendation for checkboxes.
Removing 2 rems will adjust the indentation/padding for the default accordion, but if we add checkboxes, it will push the content further, therefore, I removed 1 rem to specifically accomodate for checkboxes.
Therefore, something we need to decides is whether we want to accomodate the indentation for checkboxes or general accordions without checkboxes.
Fixes #3913
Fixes #3885
QA
Check if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁
,Breaking Change 💣
,Bug 🐛
,Documentation 📝
,Maintenance 🔨
.package.json
should be updated relative to the most recent release, following semver convention:Screenshots