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

Fixes to temporary messages #212

Merged
merged 6 commits into from
Jan 8, 2016
Merged

Fixes to temporary messages #212

merged 6 commits into from
Jan 8, 2016

Conversation

tombye
Copy link
Contributor

@tombye tombye commented Jan 6, 2016

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.

tombye added 5 commits January 6, 2016 16:20
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.
@tombye tombye mentioned this pull request Jan 6, 2016
grid = example['grid']
elif 'grid' in partial:
grid = partial['grid']

Copy link
Contributor

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

Copy link
Contributor

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'))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!! (now updated.)

@robyoung
Copy link
Contributor

robyoung commented Jan 8, 2016

👍

tombye added a commit that referenced this pull request Jan 8, 2016
@tombye tombye merged commit e92219b into master Jan 8, 2016
@tombye tombye deleted the fixes-to-temporary-messages branch January 8, 2016 14:34
tombye added a commit that referenced this pull request Jan 8, 2016
Includes

- new notification banner format
  [#211](#211)
(breaking change)
- changes to temporary messages example page
  [#212](#212)
- separation of temporary message style into
  placeholder [in
- ability to add pattern-level grids [in
  #212](#212)
@tombye tombye mentioned this pull request Jan 11, 2016
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

Successfully merging this pull request may close these issues.

3 participants