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

Popover Component #1020

Merged
merged 43 commits into from
Sep 13, 2017
Merged

Popover Component #1020

merged 43 commits into from
Sep 13, 2017

Conversation

Blackbaud-SteveBrush
Copy link
Member

Addresses #167

@codecov-io
Copy link

codecov-io commented Aug 28, 2017

Codecov Report

Merging #1020 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #1020    +/-   ##
=======================================
  Coverage     100%    100%            
=======================================
  Files         313     317     +4     
  Lines        5777    5976   +199     
  Branches      728     759    +31     
=======================================
+ Hits         5777    5976   +199
Impacted Files Coverage Δ
...dules/vertical-tabset/vertical-tabset.component.ts 100% <100%> (ø) ⬆️
src/modules/popover/popover.module.ts 100% <100%> (ø)
...vertical-tabset/vertical-tabset-group.component.ts 100% <100%> (ø) ⬆️
src/modules/popover/popover-adapter.service.ts 100% <100%> (ø)
src/modules/popover/popover.directive.ts 100% <100%> (ø)
src/modules/popover/popover.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 bbd739f...5c567b1. Read the comment docs.

@Blackbaud-BobbyEarl
Copy link

Hey @Blackbaud-SteveBrush... just some initial feedback.

  • The animation seemed a bit jarring (as compared to SKY UX 1 popover).
  • Escape key doesn't close popover.
  • I would suggest adding something that has a higher order z-index to the demo (dropdown or modal), and more importantly to the tests you write. I know that was a pain point for us in the past.
  • Add a button (or dropdown) to example HTML content to make sure tabbing isn't affected.
  • Should there be a "close" link or button as in the SKY UX 1 version?

Code-wise, nothing stood out to me, but I didn't look at it in great detail yet.

@Blackbaud-SteveBrush Blackbaud-SteveBrush changed the title [HOLD] Popover Component Popover Component Sep 8, 2017
Copy link
Contributor

@Blackbaud-ToddRoberts Blackbaud-ToddRoberts left a comment

Choose a reason for hiding this comment

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

I am making some style tweaks

Copy link
Contributor

@Blackbaud-AdamHickey Blackbaud-AdamHickey left a comment

Choose a reason for hiding this comment

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

Looks good. Just a few small things.

import { SkyVisualTest } from '../../../config/utils/visual-test-commands';

import {
// browser,
Copy link
Contributor

Choose a reason for hiding this comment

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

Here is a comment you may have forgotten to delete.

@@ -0,0 +1,39 @@
.popover-demo-container {
Copy link
Contributor

Choose a reason for hiding this comment

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

All of the other demo components use inline styles. I'm not sure why that was originally, but should we add this scss file as one of the demo files that shows up in the documentation?

Copy link
Member Author

Choose a reason for hiding this comment

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

At first I didn't include the stylesheet because I didn't think it was relevant to the demo, but I suppose I should include it just to be consistent.

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 100% sure the stylesheet should be included or not. I was just calling it out because it was different from the other documentation components. I might lean towards including it, but I'm not sold either way.

@@ -84,6 +86,7 @@ import { SkyWaitModule } from './modules/wait';
SkyNavbarModule,
SkyPageSummaryModule,
SkyPagingModule,
SkyPopoverModule,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to export the popover directive down below?

Copy link
Member Author

Choose a reason for hiding this comment

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

Great catch.

@@ -0,0 +1 @@
export type SkyPopoverPlacement = 'above' | 'below' | 'right' | 'left';
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh cool I didn't know typescript had discriminated unions.

added rounded corners and standardized font & spacing
Copy link
Contributor

@Blackbaud-ToddRoberts Blackbaud-ToddRoberts left a comment

Choose a reason for hiding this comment

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

Made some style tweaks if you want to double check them.

One potential concern is how to dismiss a popover on mobile if the content fills the screen and there is not enough empty space to tap to close.

@Blackbaud-ToddRoberts
Copy link
Contributor

Blackbaud-ToddRoberts commented Sep 11, 2017

@Blackbaud-SteveBrush I added a variable for border radius, which will need to be applied to some other components. Should I include those other updates here or in a separate PR after this is merged?

@Blackbaud-SteveBrush Blackbaud-SteveBrush merged commit 40d1ee7 into master Sep 13, 2017
@Blackbaud-SteveBrush Blackbaud-SteveBrush deleted the component-tooltip branch September 13, 2017 19: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.

5 participants