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

FIX: Stretch behavior for dropdown after relative portal #94

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

kevinrademan
Copy link
Contributor

No description provided.

@kevinrademan kevinrademan requested a review from jscheel August 19, 2020 20:19
@kevinrademan kevinrademan added bug Something isn't working patch Increment the patch version when merged release Create a release when this pr is merged labels Aug 19, 2020
padding: 12px ${spacing.padding.small}px;
max-width: ${props => (props.stretched ? 'auto' : '172px')};
width: 100%;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the 172px max still be passed to the portalConfig if stretched is false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The react relative dropdown component calculates the max width based on the component that it wraps. This basically negates the need for us to have a hard coded max-width in the component.

@kevinrademan kevinrademan merged commit df86b68 into master Aug 20, 2020
@kevinrademan kevinrademan deleted the dropdown/position branch August 20, 2020 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch Increment the patch version when merged release Create a release when this pr is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants