-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Cloud Security]Added Beta tag + improvements for CIS GCP #163663
[Cloud Security]Added Beta tag + improvements for CIS GCP #163663
Conversation
…o cis-gcp-cloud-shell
…o make it easier when refactoring later
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use flex instead of a calculated css
flexGrow: 1, | ||
/* Set Maximum width ONLY for Integration type buttons, we know this because only Integration Type has icons */ | ||
...(option.icon && { maxWidth: `calc(${euiTheme.size.xxs} * 115)` }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can also use the flex CSS property to achieve that:
style: {
flex: '1 1 0',
},
for context, flex: '1 1 0'
is a shorthand representation of these three values in the order of flex-grow, flex-shrink, and flex-basis.
So, flex: '1 1 0'
means that the flex item will grow and shrink proportionally with other items with an initial size of zero, making all of the elements achieve the same width.
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
@@ -123,3 +129,126 @@ describe('getMaxPackageName', () => { | |||
expect(result).toBe('kspm-1'); | |||
}); | |||
}); | |||
|
|||
describe('getCspmCloudShellDefaultValue', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Summary