patternfly / patternfly-elements

PatternFly Elements. A set of community-created web components based on PatternFly design.
https://patternflyelements.org/
MIT License
378 stars 96 forks source link

[NEW] pfe-popover #1407

Open heyMP opened 3 years ago

heyMP commented 3 years ago

Component name:

General description of the component goal.

Add a pfe-popover component that is complimentary to the pfe-tooltip. Popovers are meant to be used when there is an action that the user can complete such as a confirmation button. They also differ from tooltip in the fact that they need to be dismissible.

Design specification

Screen Shot 2021-02-25 at 10 51 39 AM

Screen Shot 2021-02-25 at 10 51 43 AM

https://github.com/patternfly/patternfly-elements/issues/872

Accessibility

Interaction

Analytics

heyMP commented 3 years ago

@coreyvickery pfe-popover is ready for initial design review.

https://deploy-preview-1406--happy-galileo-ea79c4.netlify.app/elements/pfe-popover/demo/

coreyvickery commented 3 years ago

@heyMP

heyMP commented 3 years ago

@coreyvickery The "X" is coming from a pfe-icon set. It's called "web-icon-close".

Screen Shot 2021-03-15 at 11 49 34 AM https://deploy-preview-1406--happy-galileo-ea79c4.netlify.app/elements/pfe-icon/demo/

coreyvickery commented 3 years ago

@heyMP Okay thanks, maybe one day we'll use the same icons as PatternFly. Let me know when a final review is ready.

heyMP commented 3 years ago

@coreyvickery what I can do is embed the PatternFly icons into the component until we come up with a plan for moving them into pfe-icon.

coreyvickery commented 3 years ago

@heyMP That would be great, let me know when you have another link I can review.

heyMP commented 3 years ago

@coreyvickery ready for followup review. https://heymp-pfe-gemini.surge.sh/elements/pfe-popover/demo/

coreyvickery commented 3 years ago

@heyMP Thanks for sending, just a few more tiny fixes and then we're done.

Close button

Primary text button

Screen Shot 2021-04-15 at 3 28 23 PM

Secondary (ghost) text button

Screen Shot 2021-04-15 at 3 28 01 PM
heyMP commented 3 years ago

Hey, @coreyvickery here are some additional updates. 😁

https://heymp-pfe-gemini.surge.sh/elements/pfe-popover/demo/

coreyvickery commented 3 years ago

@heyMP I agree about all things pfe-button, I'm not sure of the following either just yet, but I'll try and track down more information.

Final changes and then you can close this issue.

heyMP commented 3 years ago

@coreyvickery hot changes 🔥

https://deploy-preview-1406--patternfly-elements.netlify.app/elements/pfe-popover/demo/

coreyvickery commented 3 years ago

@heyMP Perfect, ready to close!