Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Compact widget directive #418

Merged
merged 4 commits into from
Apr 28, 2017
Merged

Compact widget directive #418

merged 4 commits into from
Apr 28, 2017

Conversation

vertein
Copy link
Contributor

@vertein vertein commented Apr 28, 2017

Moves more widget code from uPortal-home to the uPortal-App-Framework, so everyone can enjoy a good compact mode widget.

Fixes a bug in uPortal-home where compact mode wasn't rendering because of switching to the new layout call in portal


Contributor License Agreement adherence:

  • This Contribution is under the terms of Individual [Contributor License Agreements][] (and also Corporate Contributor License Agreements to the extent applicable) appearing in the [Apereo CLA roster][].

<!-- ng-click="layoutCtrl.removePortlet(widget.nodeId, widget.title)" -->
<!-- ng-hide="GuestMode || cantRemove"> -->
<!-- <md-icon>close</md-icon> -->
<!-- </md-button> -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the commented out code needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch! Removed it to prove that I didn't need it, but didn't actually remove it

@@ -0,0 +1,17 @@
<md-card class="list-content" id="widget-id-{{::widget.nodeId}}">
<md-button class="widget-action widget-info md-icon-button" aria-label="see a brief description of this app">
Copy link
Contributor

Choose a reason for hiding this comment

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

aria-label is good. As I understand it it would be better if the label included the name of the app that one would see a brief description of, so that screen reader user has more context in consuming that label.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I just copied and pasted a partial from before. It's always good to be better. Updated.

@vertein vertein merged commit 19c9f3b into master Apr 28, 2017
@vertein vertein deleted the compactWidgetDirective branch April 28, 2017 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants