kibana/x-pack/plugins/features/common
Candace Park 28ba652c3d
[Security][Features] Adds subtext option to Kibana feature and sub-feature controls (#147709)
## Summary
- [x] Allow plugins to configure a description subtext underneath kibana
features
- [x] Allow plugins to configure a description subtext underneath kibana
subfeatures
- [x] Adjusts subfeature form UI so privilege buttons have fullwidth,
adjusts padding/margins
- [x] Adds unit tests

# Screen Shots
<img width="752" alt="image"
src="https://user-images.githubusercontent.com/56409205/211621510-83769516-4a04-4442-8d96-92f5b6708a45.png">


Privilege button group before

![image](https://user-images.githubusercontent.com/56409205/208610978-557d1881-f222-4a29-9ae3-d60baf34e1ac.png)

Privilege button group after
<img width="666" alt="image"
src="https://user-images.githubusercontent.com/56409205/211621622-36b7a388-f1f5-4cb4-810d-48adbf7f0155.png">


Example to test:
1. In `x-pack/plugins/security_solution/server/features.ts` before
`privilegeGroups` on line 254, add `description: 'some subfeature
description here'` and before `management` on line 551, add
`description: 'some feature description here'`.
3. Stack Management > Roles > edit Kibana Privileges > Security >
Security see descriptions show up underneath Security and underneath
Endpoint List sub feature
2023-01-17 15:25:19 -07:00
..
elasticsearch_feature.ts
feature_elasticsearch_privileges.ts [Core] Deprecated APIs audit (#127744) 2022-03-16 05:04:14 -07:00
feature_kibana_privileges.ts [Cases][ResponseOps] Splitting out cases privileges (#134860) 2022-06-29 10:47:06 -04:00
index.ts [eslint] enable type-specific lint rules (#114184) 2021-11-03 16:56:17 -06:00
kibana_feature.ts [Security][Features] Adds subtext option to Kibana feature and sub-feature controls (#147709) 2023-01-17 15:25:19 -07:00
reserved_kibana_privilege.ts
sub_feature.ts [Security][Features] Adds subtext option to Kibana feature and sub-feature controls (#147709) 2023-01-17 15:25:19 -07:00