[Security Soltuion] Fix OSQuery action padding in alert action overflow menu (#150211)

The `OsqueryActionItem` wrapper around `EuiContextMenuItem` ends up preventing the default `euiContextMenuItem--small` class from being added, and so results in a different sized menu item within the `EuiContextMenuPanel`. This PR explicitly sets the `size` attribute to resolve this.


### Before
<img width="300" alt="image" src="https://user-images.githubusercontent.com/2946766/216413074-043f9861-1c32-4d98-86f1-c55cb3c161ec.png"> <img width="267" alt="image" src="https://user-images.githubusercontent.com/2946766/216413184-f93492c2-fdcd-4f20-9a98-f516d1815f5f.png">


<img width="361" alt="image" src="https://user-images.githubusercontent.com/2946766/216412859-3b90871e-3acc-49c9-8642-8d23570b1474.png">




### After
<img width="392" alt="image" src="https://user-images.githubusercontent.com/2946766/216406980-40b7575e-563f-4bd5-9e9b-5715712af3ad.png">
This commit is contained in:
Garrett Spong 2023-02-02 18:52:11 -07:00 committed by GitHub
parent 2931bbad20
commit 5480b332c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@ export const OsqueryActionItem = ({ handleClick }: IProps) => (
key="osquery-action-item"
data-test-subj="osquery-action-item"
onClick={handleClick}
size={'s'}
>
{ACTION_OSQUERY}
</EuiContextMenuItem>