-
Notifications
You must be signed in to change notification settings - Fork 102
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/update toggles jquery ui #112
Open
kipraske
wants to merge
11
commits into
Enclavely:master
Choose a base branch
from
kipraske:feature/update-toggles-jquery-ui
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/update toggles jquery ui #112
kipraske
wants to merge
11
commits into
Enclavely:master
from
kipraske:feature/update-toggles-jquery-ui
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updating fork to master 3/9/2017
Alright this isn't quite working as we expect. We need a HTML structure of... ``` accordion-wrapper h3 div h3 div h3 div ``` Here is what we have ``` accordion-wrapper toggle-wrapper h3 div toggle-wrapper h3 div ```
We just needed to define the header option for the toggles
Turns out I needed to use onInitialize or the built in event listeners would totally not work. In order to get the backend canvas working we need those events like onChildChange etc to reinitialize the accordion, and to get those events we needed to go though the right channels
Thanks for these changes, @kipraske! I'll obviously have to test them all thoroughly (and have a think about potential conflicts) before merging, but it looks good at first glance. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is part of those accessibility improvements that I had mentioned about a month back here https://github.com/andrew-worsfold/tailor/issues/95
I am replacing the internal workings of the toggles element with jquery-ui-accordions which ships with wordpress by default we just need to hook it up. It is heavier than what was there before, but we don't have to worry about all the accessibility things that come with the jquery-ui widgets.
Note I couldn't get the tabs to work properly. I will comment on the issue on where I was in that process. I think our company can just deal with having only toggles and not use tabs until I get around to finishing that part of this.
Things to test: