-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fixes to temporary messages #212
Conversation
Will pick up grids if set at the example level, fall back to the page level if present and default to no grid if left out.
Uses `aria-labelledby` to make the `<h2>` the label for the message section.
grid = example['grid'] | ||
elif 'grid' in partial: | ||
grid = partial['grid'] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More pythonic (:trollface:):
grid = example.get('grid') or partial.get('grid') or None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(even) more pythonic
grid = example.get('grid', partial.get('grid'))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!! (now updated.)
👍 |
Add some ARIA to label the
<aside>
sections (using this technique from the styleguide).This includes some changes to the toolkit to allow pattern instances to each exist in their own grid column.