Skip to content

Commit da783dd

Browse files
committed
Fix disconnect banner for dark them with suggested token
Made-with: Cursor
1 parent 75994bc commit da783dd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

libs/ui-components/src/components/Device/DeviceDetails/DeviceLogsEmptyState.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exc
1818
import { DEVICE_LOG_BASE_PATH, DeviceLogErrorType } from '../../../utils/deviceLogs';
1919
import { 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.
2329
const 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>

0 commit comments

Comments
 (0)