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

Can we have attributes for tab container li ? #1379

Closed
danyj opened this issue Mar 23, 2016 · 3 comments
Closed

Can we have attributes for tab container li ? #1379

danyj opened this issue Mar 23, 2016 · 3 comments

Comments

@danyj
Copy link
Contributor

danyj commented Mar 23, 2016

Currently we can only add attributes to the tab container content ,
http://manual.unyson.io/en/latest/options/introduction.html#containers but I need to add class to the tab li since I am working on a post formats switch that should hide/show tabs on click.

Right now I must work with aria-controls attribute and look for all the ones I need, with one class I cold control them all at once.

@ghost ghost added the ready label Mar 23, 2016
@ghost ghost self-assigned this Mar 23, 2016
@ghost ghost closed this as completed in 8732591 Mar 23, 2016
@ghost ghost removed the ready label Mar 23, 2016
@danyj
Copy link
Contributor Author

danyj commented Mar 23, 2016

👍

@ghost
Copy link

ghost commented Mar 23, 2016

array(
    'li-attr' => array('foo' => 'bar'), // <---
    'title' => __( 'Awesome Tab', '{domain}' ),
    'type' => 'tab',
    'options' => array(...),
)

@danyj
Copy link
Contributor Author

danyj commented Mar 23, 2016

@moldcraft I saw that one , thnx!

This issue was closed.
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

No branches or pull requests

1 participant