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

[Logs UI] Fix index checkbox overlap of the analysis setup dat… #49489

Merged

Conversation

weltenwort
Copy link
Member

Summary

This slightly increases the datepicker popover z-index to avoid the checkbox labels (which for some reason have an increased z-index) from underneath showing through.

fixes #49245

Preview

grafik

Checklist

For maintainers

@weltenwort weltenwort added v8.0.0 Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.5.0 v7.6.0 labels Oct 28, 2019
@weltenwort weltenwort self-assigned this Oct 28, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

</EuiFormControlLayout>
</EuiFlexGroup>
</EuiFormRow>
</EuiDescribedFormGroup>
);
};

const WithFixedDatepickerZIndex = euiStyled(
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 created this function-as-a-child component to work around the issue that the popover class must be specified as popperClassName instead of className.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@weltenwort weltenwort marked this pull request as ready for review October 28, 2019 17:17
@weltenwort weltenwort requested a review from a team as a code owner October 28, 2019 17:17
</EuiFormControlLayout>
</EuiFlexGroup>
</EuiFormRow>
</EuiDescribedFormGroup>
);
};

const WithFixedDatepickerZIndex = euiStyled(
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe save some complexity by doing:

Suggested change
const WithFixedDatepickerZIndex = euiStyled(
const StyledDatePicker = euiStyled(
({
className,
...rest,
}: {
className?: string;
rest: Object; // Not sure off the top of my head how to refer to EuiDatePicker's propTypes
}) => <EuiDatePicker {...rest} popperClassName={className}/>
)`
z-index: 3 !important;
`;

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I can do something to that effect. The reason why I implemented it as a FAAC component was to avoid that coupling to the datepicker props and retain the ability to supply a className to the datepicker.

@weltenwort weltenwort force-pushed the logs-ui-fix-setup-datepicker-z-index branch from b450005 to 34cb645 Compare October 29, 2019 10:50
@weltenwort weltenwort added the release_note:skip Skip the PR/issue when compiling release notes label Oct 29, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@weltenwort
Copy link
Member Author

@Zacqary I followed your suggestion - this is ready for another review pass.

@weltenwort weltenwort changed the title [Logs UI] Fix index checkbox overlap of the analysis setup datepickers [Logs UI] Fix index checkbox overlap of the analysis setup dat… Oct 29, 2019
@weltenwort weltenwort merged commit 215ac20 into elastic:master Oct 29, 2019
@weltenwort weltenwort deleted the logs-ui-fix-setup-datepicker-z-index branch October 29, 2019 17:05
weltenwort added a commit to weltenwort/kibana that referenced this pull request Oct 29, 2019
…tic#49489)

This slightly increases the datepicker popover `z-index` to avoid the checkbox labels (which for some reason have an increased `z-index`) from underneath showing through.

fixes elastic#49245
weltenwort added a commit to weltenwort/kibana that referenced this pull request Oct 29, 2019
…tic#49489)

This slightly increases the datepicker popover `z-index` to avoid the checkbox labels (which for some reason have an increased `z-index`) from underneath showing through.

fixes elastic#49245
weltenwort added a commit that referenced this pull request Oct 29, 2019
Backports the following commits to 7.x:
 - [Logs UI] Fix index checkbox overlap of the analysis setup dat… (#49489)
weltenwort added a commit that referenced this pull request Oct 29, 2019
Backports the following commits to 7.5:
 - [Logs UI] Fix index checkbox overlap of the analysis setup dat… (#49489)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Logs UI Logs UI feature release_note:skip Skip the PR/issue when compiling release notes review Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.5.0 v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Logs UI] Date picker on analysis setup screen shows index pattern fields from below
3 participants