-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Why are tabs using dl and dd? #4308
Comments
Yeh, I was wondering this to... |
... also the "Magellan"-example in the doku use dl / dd? But it also running with ul / li ... magellan-doku: http://foundation.zurb.com/docs/components/magellan.html |
yeah - really don't like it. see issue #797 too. |
I'm downgrading because I really question some of these choices. Features removed (deep linking), unnecessary tags required (data-reveal), and I understand wanting to simplify sections even if I liked them but this is just bizarre. I did appreciate that there was a little less CSS this time around, I think Foundation would benefit from a less styled version, but it's back to version 4 for me. |
We found in practice the sections element was great for quick prototyping and an unholy disaster for actual production work (the enforced styling was way too rigid). Our belief at this juncture is that the tabs / accordion elements combined with either visibility classes or Interchange provide a more robust albeit wordier solution. I am interested to hear about other ideas for this – it was not an easy decision. As far as tabs are concerned they should be built from UL not DL elements, and we'll be adjusting that in the near future (for a number of elements, actually, by removing the specific tag dependency). |
"(for a number of elements, actually, by removing the specific tag dependency)." /me presses imaginary like button. |
Okay, this will be removed and switched to an agnostic, class-based implementation for 5.3. |
Hoorah! |
I would add my support for removing any dependency on specific tags. Any progress on this? |
Working on it. So many things to do girl. It's on the list. |
@smileyj68 would be good to make mixins for like tab-container, tab-element etc. so that one can support other structures in cases where you are styling a site that already has the tab output with builtin js. |
Okay, for now: you can now use the tab component with DLs, ULs, or really any elements at all as long as you put the .tabs class on the container and .tab-title on each immediate child. Boom, baby. 0608559 |
very smacss, thanks! |
Awesome!! |
Is this a semantically correct way to do this?
The current HTML for tabs looks like this:
Is there a reason for using definitions for the tabs? To me this doesn't make much sense.
And also, according to the HTML specs a dl should contain zero of more of this:
So it looks like it is invalid HTML
The text was updated successfully, but these errors were encountered: