fix(ui): fix docker images page error on pageheader EE-3668 (#7212)

* fix docker images page error with link on page-header
pull/7361/head
Richard Wei 2022-07-28 09:53:19 +12:00 committed by GitHub
parent 52ac54f15c
commit aa830a0e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 5 deletions

View File

@ -41,7 +41,11 @@ function renderCrumb(crumb: Crumb | string) {
if (crumb.link) { if (crumb.link) {
return ( return (
<Link to={crumb.link} params={crumb.linkParams}> <Link
to={crumb.link}
params={crumb.linkParams}
className="text-blue-9 hover:underline"
>
{crumb.label} {crumb.label}
</Link> </Link>
); );

View File

@ -39,13 +39,13 @@ export function PageHeader({
<HeaderTitle title={title}> <HeaderTitle title={title}>
{reload && ( {reload && (
<Button <Button
color="link" color="none"
size="medium" size="large"
onClick={onClickedRefresh} onClick={onClickedRefresh}
className={styles.reloadButton} className={styles.reloadButton}
disabled={loading} disabled={loading}
> >
<RefreshCw className="feather icon-sm" /> <RefreshCw className="icon" />
</Button> </Button>
)} )}
</HeaderTitle> </HeaderTitle>

View File

@ -0,0 +1,10 @@
.btn-none {
padding: 0;
margin: 0;
background-color: transparent;
width: 1em;
}
.btn-none:focus {
outline: none;
}

View File

@ -10,6 +10,7 @@ import clsx from 'clsx';
import { AutomationTestingProps } from '@/types'; import { AutomationTestingProps } from '@/types';
import { Icon } from '@@/Icon'; import { Icon } from '@@/Icon';
import './Button.css';
type Type = 'submit' | 'button' | 'reset'; type Type = 'submit' | 'button' | 'reset';
type Color = type Color =
@ -21,7 +22,8 @@ type Color =
| 'danger' | 'danger'
| 'link' | 'link'
| 'light' | 'light'
| 'dangerlight'; | 'dangerlight'
| 'none';
type Size = 'xsmall' | 'small' | 'medium' | 'large'; type Size = 'xsmall' | 'small' | 'medium' | 'large';
export interface Props extends AriaAttributes, AutomationTestingProps { export interface Props extends AriaAttributes, AutomationTestingProps {