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

Popup widget #925

Merged
merged 11 commits into from
Nov 26, 2019
Merged

Popup widget #925

merged 11 commits into from
Nov 26, 2019

Conversation

tomdye
Copy link
Member

@tomdye tomdye commented Nov 26, 2019

Type: feature

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit tests are included in the PR
  • Any widget variant uses theme.compose like this
  • WidgetProperties are exported

Description:

Adds popup widget and tests

Resolves #924

@dojo-site
Copy link

This pull request has been deployed to:

src/examples/src/widgets/popup/SetWidth.tsx Show resolved Hide resolved
if (willFit.below) {
wrapperStyles.top = `${triggerBottom}px`;
} else {
wrapperStyles.top = `${triggerTop - wrapperDimensions.size.height}px`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to handle when it won't fit above or below? I'm thinking this could happen with a mobile phone on landscape.

Copy link
Member Author

Choose a reason for hiding this comment

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

I plan for us to tackle left / right positions as a follow up PR / issue

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we get an issue posted just so we don't lose track of this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added it to the existing issue already @vansimke

@dojo-site
Copy link

This pull request has been deployed to:

@dojo-site
Copy link

This pull request has been deployed to:

@tomdye tomdye merged commit 1da9fca into dojo:master Nov 26, 2019
ericos pushed a commit to ericos/widgets that referenced this pull request Jan 3, 2020
* initial

* add width

* add basic popup implementation

* basic test file

* setting up harnass

* typed children

* adding examples

* stubbing node

* add tests for popup

* add readme

* stub scroll / height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Popup widget to display widget popups consistently.
4 participants