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

Update Notice Module and Module CSS loading API #880

Merged
merged 9 commits into from
Aug 28, 2015
Merged

Update Notice Module and Module CSS loading API #880

merged 9 commits into from
Aug 28, 2015

Conversation

kabel
Copy link
Contributor

@kabel kabel commented Aug 27, 2015

  • Reverts bad commit to debug html instance
  • Changes the example markup for notice
  • Updates the core band styles to use margin to offset the page-pad on mobile
  • Updates notice styles to not do so many overrides
  • Cleanup WDN api to remove dead code and add a method for getting a versioned template file URL
  • Update all modules to use the versioned template file URL getter for loading CSS.

kabel added 6 commits August 24, 2015 17:38
This will provide better support for legacy/unbanded content that has
existing padding. This may cause a backward compatibility issue with
legacy grids as direct children of maincontent.

Also refactors media queries band styles directly into the selectors
they apply to.
Webkit and Gecko have implemented working event implementations for the
<link> element. This can be used in our loadCSS function.
Implemented HTML5 data attributes for setting the overlay and auto-close
period. Updated the example HTML to match. The code remains fully
backwards compatible with the css class based initialization.

@media @bp3 {
padding: 0;
padding-left: 0;
paading-right: 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed.

</div>
</div>
<script type="text/javascript">
WDN.initializePlugin('notice');
</script>
</div>
</body>
</html>
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if these examples could use some accessibility love. Perhaps aria roles of alert and/or alertdialog. I also wonder if it is possible to have the JavaScript side of things add the appropriate role automatically, so it doesn't have to be hand coded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They could, but this is beyond the scope of this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it beyond the scope? You are already refactoring it, accessibility should be in mind.

I am curious exactly how AT processes these roles if they exist on the page on initial page load. Do they announce them right away? I will have to check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's like saying, "hey, I see you changing something in this file, mind changing something else mostly unrelated to your original intent?"

Make your own PR. :P

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I don't see how accessibility is mostly unrelated. The example code was updated to include the latest best practices, which should include accessibility considerations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not trying to be confrontational, but this is exactly what feature creep is. If you see something else that needs improvement, you should create your own pull request.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not trying to be confrontational either. I'd argue that feature creep is not this. Pull requests should be reviewed for code style, bugs, usability and risk. Risk and usability includes accessibility. If care was taken to refactor something to make it better (and this is much better than it was before), accessibility should be reviewed in the pull request.

Feature creep on the other hand is adding additional superficial (maybe the wrong word) features, such as different fading transitions, or different colors because they would look nice, or a different widget entirely.

When a widget is updated, all aspects of that widget in terms of code and usability should be visited and addressed.

Perhaps that is just my professional opinion.

@mfairchild365
Copy link
Contributor

@kabel it looks like the tests are failing for this one.

@kabel
Copy link
Contributor Author

kabel commented Aug 28, 2015

Boo. It seems like a side-effect. I'm restarting the build to confirm.

@mfairchild365
Copy link
Contributor

Looks like it is still failing. :(

@kabel
Copy link
Contributor Author

kabel commented Aug 28, 2015

Found it.

mfairchild365 added a commit that referenced this pull request Aug 28, 2015
Update Notice Module and Module CSS loading API
@mfairchild365 mfairchild365 merged commit 81aa4cb into unl:develop Aug 28, 2015
@kabel kabel deleted the notice-cleanup branch August 28, 2015 14:17
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.

2 participants