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

[Security Solution][Endpoint] Adjust Activity log date picker alignments #108504

Merged
merged 4 commits into from
Aug 16, 2021
Merged

[Security Solution][Endpoint] Adjust Activity log date picker alignments #108504

merged 4 commits into from
Aug 16, 2021

Conversation

ashokaditya
Copy link
Member

@ashokaditya ashokaditya commented Aug 13, 2021

Summary

Modifies the activity log date range picker alignment and width.
I've used a 350px width instead of a 250px as in the figma mock to show the placeholder text.

This would change when we implement the Super Date Picker component instead of the date range picker in a later PR.

250px (as in mock)
Screenshot 2021-08-13 at 12 54 15

350px (in this change)
Screenshot 2021-08-13 at 12 54 24

activity-log-date-picker-alignment

Checklist

Delete any items that are not applicable to this PR.

  • Any UI touched in this PR does not create any new axe failures (run axe in browser: FF, Chrome)
  • This renders correctly on smaller devices using a responsive layout. (You can test this in your browser)
  • This was checked for cross-browser compatibility

going with 350px instead of the 250px in the mock in order to fully show the placeholder text for now.

see elastic/security-team/issues/1571
@ashokaditya ashokaditya self-assigned this Aug 13, 2021
@ashokaditya ashokaditya added release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution auto-backport Deprecated - use backport:version if exact versions are needed labels Aug 13, 2021
@ashokaditya ashokaditya marked this pull request as ready for review August 13, 2021 11:01
@ashokaditya ashokaditya requested a review from a team as a code owner August 13, 2021 11:01
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt)

@ashokaditya ashokaditya requested a review from bfishel August 13, 2021 11:04
@ashokaditya ashokaditya changed the title Adjust Activity log date picker alignments [Security Solution][Endpoint] Adjust Activity log date picker alignments Aug 13, 2021
position: sticky;
top: ${(props) => props.theme.eui.euiSizeM};
z-index: 1;
padding: ${(props) => `0 ${props.theme.eui.euiFontSizeM}`};
Copy link
Contributor

Choose a reason for hiding this comment

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

i wonder if it's possible to use one of the more standard padding sizes like 16px or 24px since it seems kinda weird to use 18px, which looks like its usually used for font sizes

Copy link
Member Author

Choose a reason for hiding this comment

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

@parkiino Yeah, I used 18px as that's what aligns it perfectly with the log content. I'm okay with using a 16px if we're okay with it being a little off. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, I used a 16px and it looks alright I think. Let's go with that.

activity-log-alignment

@ashokaditya
Copy link
Member Author

@elasticmachine merge upstream

@ashokaditya ashokaditya requested a review from parkiino August 16, 2021 12:09
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 6.5MB 6.5MB +71.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ashokaditya

Copy link

@bfishel bfishel left a comment

Choose a reason for hiding this comment

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

the resizing makes total sense. thank you for working on this!

Copy link
Contributor

@kevinlog kevinlog left a comment

Choose a reason for hiding this comment

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

LGTM!

@ashokaditya ashokaditya merged commit a4ba1c9 into elastic:master Aug 16, 2021
@ashokaditya ashokaditya deleted the fix/olm_activity_log_date_picker_alignments-1571 branch August 16, 2021 14:20
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Aug 16, 2021
…nts (elastic#108504)

* set max width on date picker

going with 350px instead of the 250px in the mock in order to fully show the placeholder text for now.

see elastic/security-team/issues/1571

* pad date picker to align with activity log content

see elastic/security-team/issues/1571

* use padding sizes instead

review comments

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 16, 2021
…nts (#108504) (#108706)

* set max width on date picker

going with 350px instead of the 250px in the mock in order to fully show the placeholder text for now.

see elastic/security-team/issues/1571

* pad date picker to align with activity log content

see elastic/security-team/issues/1571

* use padding sizes instead

review comments

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Ashokaditya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants