-
Notifications
You must be signed in to change notification settings - Fork 49
Mobile friendly tabbed pages #154
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
Conversation
Comments on preview:
|
As before, concrete suggestions would be quite helpful. I am especially unsure on how to indicate the current page, or how to fix "not great" on the heading. |
There's another problem here, you have an |
This is coming along splendidly! @domenic FWIW If intent is to keep them separated then understandable. I just remember wanting that feature about a year or two ago and didn't realize it existed. Lastly, @annevk unless i'm missing something I thought the |
28babf9
to
c178222
Compare
Fixed a decent amount except "Heading doesn't look great". New preview at https://whatwgorg-njxxzgcprg.now.sh/faq.html . (@snuggs, I use distinct URLs on purpose so you can see what's changed between revisions.) |
I tried fiddling with the CSS but got lost. I'll try more specific suggestions:
|
This'll fix #21. |
c178222
to
0fdcff4
Compare
Latest attempt at https://whatwgorg-uoyhfttqtc.now.sh/faq.html incorporating some of the feedback. But it's not great:
Concrete help appreciated again. |
I had a little hack around at https://github.com/jakearchibald/whatwg.org/tree/mobile-friendly-tabbed-pages-jake. |
Alright, this is looking somewhat reasonable!! Newest version at https://whatwgorg-ldgmgpavke.now.sh/faq.html. Only potentially unresolved problem is the style for highlighting the current page not being clear enough. |
Not great, but better than the status quo I think:
Aside: I'd rather not use an I also think we should explicitly declare |
I think it's a rather good fit per https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element:
(see also the example following right after.) |
Seems reasonable. Deployed at https://whatwgorg-fagezotxgs.now.sh/faq.html. Good enough for me to change all the various pages markup structures and so on, or is there more to iterate on? |
I think we might use |
If we remove |
Maybe it would be better to just move the |
I much prefer stylistically it being in the actual header. Per @sideshowbarker's clarifications to the hgroup examples it would be highlighted as "WHATWG: FAQ" (see https://html.spec.whatwg.org/#the-hgroup-element). That is, it would prevent creating a separate section. That seems roughly correct, to the extent that anything about the current outline algorithm is correct. I like the idea that the whole page is "WHATWG: FAQ", not "WHATWG", navigation, subsection "FAQ". If we don't care much about our outline at all, which is a fine thing to do IMO, then we could remove the hgroup. |
I guess I don't feel too strongly, but it still seems a little weird. (An alternative I entertained was that "WHATWG" would be the first link in the navigation list, just presented differently, and that FAQ would be the |
2db023d
to
628e080
Compare
Anyone want to give this a final sign-off? participate.whatwg.org PR also prepared: whatwg/participate.whatwg.org#15 |
@domenic did you revert your stance on #178 (comment) for some reason? |
No, I just forgot. Can fix... |
\o/ nice work all! |
On top of #153; you'll want to just look at the last commit.
A productionized version of this would need to:
We might also want to consider bumping up all the heading levels given this structure?
Preview at https://whatwgorg-zztzaeblsl.now.sh/faq.html (.html added for demo purposes only)