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

attribute to focus something after opening #20

Closed
jpyrat opened this Issue Jun 1, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@jpyrat
Copy link

jpyrat commented Jun 1, 2017

Hi,

Could you had the possibility to focus a form field ?
With something like :
data-modal-focus-id

Thx !

@nico3333fr

This comment has been minimized.

Copy link
Owner

nico3333fr commented Jun 1, 2017

Hi,

why not, a good idea :)

@nico3333fr nico3333fr self-assigned this Jun 1, 2017

@jpyrat

This comment has been minimized.

Copy link
Author

jpyrat commented Jun 1, 2017

You can look here for the need for that : stpeter-gallicantu.org point g2w point fr/-Rubriques-.html

@nico3333fr nico3333fr closed this in 7d05030 Jun 8, 2017

nico3333fr added a commit that referenced this issue Jun 8, 2017

Add attribute data-modal-focus-id
As kindly suggested by @jpyrat. Closed #20
@nico3333fr

This comment has been minimized.

Copy link
Owner

nico3333fr commented Jun 8, 2017

Here we go, the option is added, and the documentation is updated: https://a11y.nicolas-hoffmann.net/modal/

Thanks for the suggestion ;)

@jpyrat

This comment has been minimized.

Copy link
Author

jpyrat commented Jun 9, 2017

Thx !
Sample case of use with a trick permitted by the way you intégrate it : https://zone.spip.org/trac/spip-zone/changeset/104824

  • data-modal-focus-id="js-modal-content .socialtags a:first"
  • data-modal-focus-id="menu_lang > a:first"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.