From 2d17d753ef242ba1c50b6c250e2f7e922b329056 Mon Sep 17 00:00:00 2001 From: ruhshan Date: Mon, 31 Jul 2023 22:02:20 +0600 Subject: [PATCH] Update role mappings empty UI for consistency (#162357) ## Summary Fixes #161137 Update style of empty role mappings prompt to meet consistency. ![image](https://github.com/elastic/kibana/assets/5312918/f419de0e-177a-4fac-aa36-1c6ec5f0d6c6) Update icon of create api key button of empty api key prompt. ![image](https://github.com/elastic/kibana/assets/5312918/9b69e91a-9267-42d7-85f0-aca1507879af) ### Checklist Delete any items that are not applicable to this PR. - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jeramy Soucy --- .../api_keys_grid/api_keys_empty_prompt.tsx | 2 +- .../api_keys_grid/api_keys_grid_page.tsx | 2 +- .../create_role_mapping_button.tsx | 1 + .../empty_prompt/empty_prompt.tsx | 20 +++++++++---------- .../role_mappings_grid_page.tsx | 6 +----- 5 files changed, 13 insertions(+), 18 deletions(-) diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx b/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx index c76b385cfccc5..b6300832551e8 100644 --- a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx +++ b/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx @@ -147,7 +147,7 @@ export const ApiKeysEmptyPrompt: FunctionComponent = ({ return ( { diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx b/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx index 4aa55840cc7f8..ab9ce044f7b4c 100644 --- a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx +++ b/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx @@ -21,6 +21,7 @@ interface CreateRoleMappingButtonProps { export const CreateRoleMappingButton = ({ history }: CreateRoleMappingButtonProps) => { return ( = ({ history, readOnly = false, }) => ( - @@ -40,14 +40,12 @@ export const EmptyPrompt: React.FunctionComponent = ({ } body={ - -

- -

-
+

+ +

} actions={readOnly ? null : } data-test-subj="roleMappingsEmptyPrompt" diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx b/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx index e6feadd199b02..ad8f204fa75cd 100644 --- a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx +++ b/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx @@ -136,11 +136,7 @@ export class RoleMappingsGridPage extends Component { } if (loadState === 'finished' && roleMappings && roleMappings.length === 0) { - return ( - - - - ); + return ; } return (