[8.16] [Data Views] Fix color of button group in 'Share Data View to Spaces' (#196004) (#199534)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Data Views] Fix color of button group in 'Share Data View to
Spaces' (#196004)](https://github.com/elastic/kibana/pull/196004)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Oyelola
Victoria","email":"123843734+VriaA@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-08T18:13:14Z","message":"[Data
Views] Fix color of button group in 'Share Data View to Spaces'
(#196004)\n\n### Summary\r\n- This PR fixes #194734 \r\n- Changed the
button group color value from `success` to `text`\r\n\r\n###
Before\r\n\r\n![color_before](https://github.com/user-attachments/assets/38ee2ede-f081-402e-9184-9d81b7eaf5ff)\r\n\r\n###
After\r\n\r\n![color_after](https://github.com/user-attachments/assets/1408a6d1-0876-4c65-9e54-194f64e69c13)\r\n\r\nSigned-off-by:
Oyelola Victoria <oyelolaabimbola23@gmail.com>\r\nCo-authored-by: Larry
Gregory
<larry.gregory@elastic.co>","sha":"c92775a5b68f4fadadb8c7cf04a4567bb3ed8863","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","💝community","v9.0.0","backport:all-open"],"title":"[Data
Views] Fix color of button group in 'Share Data View to
Spaces'","number":196004,"url":"https://github.com/elastic/kibana/pull/196004","mergeCommit":{"message":"[Data
Views] Fix color of button group in 'Share Data View to Spaces'
(#196004)\n\n### Summary\r\n- This PR fixes #194734 \r\n- Changed the
button group color value from `success` to `text`\r\n\r\n###
Before\r\n\r\n![color_before](https://github.com/user-attachments/assets/38ee2ede-f081-402e-9184-9d81b7eaf5ff)\r\n\r\n###
After\r\n\r\n![color_after](https://github.com/user-attachments/assets/1408a6d1-0876-4c65-9e54-194f64e69c13)\r\n\r\nSigned-off-by:
Oyelola Victoria <oyelolaabimbola23@gmail.com>\r\nCo-authored-by: Larry
Gregory
<larry.gregory@elastic.co>","sha":"c92775a5b68f4fadadb8c7cf04a4567bb3ed8863"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196004","number":196004,"mergeCommit":{"message":"[Data
Views] Fix color of button group in 'Share Data View to Spaces'
(#196004)\n\n### Summary\r\n- This PR fixes #194734 \r\n- Changed the
button group color value from `success` to `text`\r\n\r\n###
Before\r\n\r\n![color_before](https://github.com/user-attachments/assets/38ee2ede-f081-402e-9184-9d81b7eaf5ff)\r\n\r\n###
After\r\n\r\n![color_after](https://github.com/user-attachments/assets/1408a6d1-0876-4c65-9e54-194f64e69c13)\r\n\r\nSigned-off-by:
Oyelola Victoria <oyelolaabimbola23@gmail.com>\r\nCo-authored-by: Larry
Gregory
<larry.gregory@elastic.co>","sha":"c92775a5b68f4fadadb8c7cf04a4567bb3ed8863"}}]}]
BACKPORT-->

Co-authored-by: Oyelola Victoria <123843734+VriaA@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-11-09 07:18:54 +11:00 committed by GitHub
parent 89825cbd38
commit f20c1c8262
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,7 +174,7 @@ export const ShareModeControl = (props: Props) => {
onChange(updatedSpaceIds);
}}
legend={buttonGroupLegend}
color="success"
color="text"
isFullWidth={true}
isDisabled={!canShareToAllSpaces || isGlobalControlChangeProhibited}
/>