File tree Expand file tree Collapse file tree
libs/ui-components/src/components/Device/DeviceDetails Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exc
1818import { DEVICE_LOG_BASE_PATH , DeviceLogErrorType } from '../../../utils/deviceLogs' ;
1919import { useTranslation } from '../../../hooks/useTranslation' ;
2020
21+ // Fixes the color of the text in the "red" banner button.
22+ const redBannerButtonFixStyle = {
23+ '--pf-v6-c-button--m-link--Color' : 'var(--pf-t--global--text--color--nonstatus--on-red--default)' ,
24+ '--pf-v6-c-button--m-link--hover--Color' : 'var(--pf-t--global--text--color--nonstatus--on-red--default)' ,
25+ } as React . CSSProperties ;
26+
2127// Note: Despite the function signature, errorType can actually be a plain string.
2228// This happens when we receive an uncontrolled error, and instead of the errorType we store the actual error message.
2329const getErrorDetails = ( t : TFunction , errorType : DeviceLogErrorType ) => {
@@ -94,7 +100,7 @@ export const DeviceLogsDisconnectedBanner = ({ onRetry }: { onRetry: VoidFunctio
94100 < Flex justifyContent = { { default : 'justifyContentSpaceBetween' } } >
95101 < FlexItem > { t ( 'Offline/ device lost connection' ) } </ FlexItem >
96102 < FlexItem >
97- < Button variant = "link" onClick = { onRetry } >
103+ < Button variant = "link" onClick = { onRetry } style = { redBannerButtonFixStyle } >
98104 { t ( 'Retry' ) }
99105 </ Button >
100106 </ FlexItem >
You can’t perform that action at this time.
0 commit comments