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

Conversation

Blackbaud-StewartStephens
Copy link
Contributor

Code change for issue #1754

Add primary action callback for the flyout component.

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 2e18f43
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/397850056

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 027c1ee
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/397911377

(Please note that this is a fully automated comment.)

@codecov-io
Copy link

codecov-io commented Jun 28, 2018

Codecov Report

Merging #1766 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1766      +/-   ##
==========================================
+ Coverage   99.98%   99.98%   +<.01%     
==========================================
  Files         410      410              
  Lines        8542     8556      +14     
  Branches     1253     1256       +3     
==========================================
+ Hits         8541     8555      +14     
  Misses          1        1
Impacted Files Coverage Δ
src/modules/flyout/flyout.component.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c16ee63...2810258. Read the comment docs.

@Blackbaud-StewartStephens
Copy link
Contributor Author

I will be making a change to better support resize dragging when iframes are present on the page. Please do not review yet.

@Blackbaud-StewartStephens
Copy link
Contributor Author

OK, should be good to review now.

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 660a08f
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/398283109

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: f8588bd
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/398283161

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 3647d18
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/398338912

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 81e8a21
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/398370422

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: f3788de
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/398385779

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 6ea2424
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399101418

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 3e78169
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399101484

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 67e0a6b
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399177695

(Please note that this is a fully automated comment.)

Copy link
Member

@Blackbaud-SteveBrush Blackbaud-SteveBrush left a comment

Choose a reason for hiding this comment

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

@Blackbaud-StewartStephens Code looks great; just a few suggestions.


<ng-template #primaryActionTemplate>
<ng-template [ngIf]="primaryAction && primaryAction.callback">
<a

Choose a reason for hiding this comment

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

Since the user may not be navigating to a route or URL with this button, we should instead represent this semantically as a button.

<button
  class="sky-btn sky-btn-default sky-flyout-btn-primary-action"
  type="button"
  (click)="invokePrimaryAction()"
>
  {{ primaryActionLabel }}
</button>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switched this to a button.

@@ -62,6 +62,12 @@
}
}

.sky-flyout-btn-primary-action {

Choose a reason for hiding this comment

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

This style won't be needed if we convert to using <button>.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this style. I left the class on the button element since the tests rely on using it as part of the selector.


// when iframes are present on the page, they may interfere with dragging
// temporarily disable pointer events in iframes when dragging starts
const iframes = document.querySelectorAll('iframe');

Choose a reason for hiding this comment

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

I'd like to research the iframe issue further (is there an issue filed for this?), but I don't want to hold up this pull request. Think we could pull this out into a different branch for now?

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 removed the iframe code from this branch and moved it to branch ch-flyout-iframe in my fork. I also filed an issue #1794 to track it.

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 4ac1907
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399249898

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 1e95385
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399256784

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 0b78552
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399256861

(Please note that this is a fully automated comment.)

<ng-template [ngIf]="primaryAction && primaryAction.callback">
<button
class="sky-btn sky-btn-default sky-flyout-btn-primary-action"
href="#"

Choose a reason for hiding this comment

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

Needs type="button" (if not provided, it defaults to "submit" which could potentially trigger a form submission).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added type="button".

@@ -39,6 +39,7 @@ import {
SkyFlyoutMessage,
SkyFlyoutMessageType
} from './types';
import { SkyFlyoutAction } from './types/flyout-action';

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exported the type.

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 6dccbf3
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399581710

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 7ba9856
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399593705

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: b117aef
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399622488

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 2810258
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399630378

(Please note that this is a fully automated comment.)

@Blackbaud-SteveBrush
Copy link
Member

@blackbaud-sky-savage retry

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 2810258
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/399643696

(Please note that this is a fully automated comment.)

@blackbaud-johnly
Copy link
Contributor

Created #2014 to document the flyout action

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants