-
Notifications
You must be signed in to change notification settings - Fork 40
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
HTML5 elements in layouts #795
Comments
|
The whole point of semantics is assigning meaning to things. Whether or not visitors are going to Otherwise I agree with/accept everything else you said. |
I don't think our themers are going to be happy with us adding a |
In my first post above I also suggested the possibility of adding the tabs and action links to the |
Here are the 3 options as I see them:
<?php print render($title_prefix); ?>
<?php if ($title): ?>
<h1 class="title" id="page-title"><?php print $title; ?></h1>
<?php endif; ?>
<?php print render($title_suffix); ?>
<?php if ($tabs): ?>
<div class="tabs"><?php print $tabs; ?></div>
<?php endif; ?>
<?php print $action_links; ?>
<?php print $content['content']; ?>
<header>
<?php print render($title_prefix); ?>
<?php if ($title): ?>
<h1 class="title" id="page-title"><?php print $title; ?></h1>
<?php endif; ?>
<?php print render($title_suffix); ?>
</header>
<?php if ($tabs): ?>
<div class="tabs"><?php print $tabs; ?></div>
<?php endif; ?>
<?php print $action_links; ?>
<?php print $content['content']; ?>
<header>
<?php print render($title_prefix); ?>
<?php if ($title): ?>
<h1 class="title" id="page-title"><?php print $title; ?></h1>
<?php endif; ?>
<?php print render($title_suffix); ?>
<?php if ($tabs): ?>
<div class="tabs"><?php print $tabs; ?></div>
<?php endif; ?>
<?php print $action_links; ?>
</header>
<?php print $content['content']; ?> |
I think the 3rd option makes a lot of sense. We should probably add a class on there as well don't you think? If we did this approach, all of those items would also likely be grouped into a single block in #796. We'd probably provide a default template for such a block to remove all the wrappers, just like we do in |
I agree :) |
Seven has some odd requirements around the positioning of its title/tabs/action links that makes wrapping them with a single |
I'd be happy to see them all as separate blocks. That would mean we don't need to worry about |
So this issue's now about changing the messages wrapper back to a |
Sounds good, we can make these changes in a bugfix release IMO. The change is minimal and theme's already should be dependent upon the region classes (if anything) rather than the tag name. This should be a trivial PR if you're up for it. |
Here you go. |
I didn't want to re-open #360 since it's already been committed, so thought I'd start a new discussion here instead. I'm no expert in HTML5, but thought I'd make some suggestions for core layouts (specifically the 'two-column' layout I'm using as a reference) based on some research I've just done.
Why do messages use a
<section>
element? According to html5doctor.com<section>
elements should have a heading that describes the theme of the section. Messages have no such heading, and shouldn't have. They're just for conveying contextual information to the user and, in my option, aren't part of the 'content' of the page... I think a<div>
will suffice here.Can we remove
<a id="main-content"></a>
and instead addid="main-content"
to<main class="l-content" role="main">
? This will remove an otherwise unnecessary, empty element. Also, according to an answer on StackOverflow, HTML5 looks first forid="foo"
, thenname="foo"
as a secondary option (making the first more correct).Can/should we wrap
in
<header>
tags? I think that would make sense. We could even add the tabs and action links into the header section...My understanding of the revised
<aside>
element is that it can now be used for sidebars (see http://html5doctor.com/aside-revisited/). I recommend replacing<div class="l-sidebar">
with<aside class="l-sidebar">
.Again, according to html5doctor.com, I think we should replace
<div class="l-footer">
with<footer class="l-footer">
.The text was updated successfully, but these errors were encountered: