Skip to content
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

Enable/disable closing dropdown via aria-autoclose attribute #230

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Enable/disable closing dropdown via aria-autoclose attribute #230

wants to merge 4 commits into from

Conversation

bgilhome
Copy link

Implements current Foundation's method of specifying an aria-autoclose attribute on elements to either enable/disable closing a dropdown. Elements contained within a dropdown can be disabled from closing the dropdown by adding aria-autoclose="false".

I've also allowed specifying the attribute on the dropdown element itself to disable click on all contained elements from closing the dropdown, unless they specify an attribute aria-autoclose="true".

bgilhome added 3 commits May 23, 2015 11:29
…g close on dropdowns. Also move check to inside closeMenu function for proper binding/unbinding click handler.
@ridespirals
Copy link

👍 I'd really like to see this merged in.

@NickClark
Copy link

👍

@jbrowning
Copy link
Member

Thanks for sending this in @bgilhome and sorry for the (very) late reply. A couple things:

  1. This depends on jQuery and we advertise no dependence on anything other than Angular and the Foundation CSS.
  2. We don't prefix any of our other attributes with aria so it wouldn't make sense for us to do this here.
  3. This is missing documentation and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants