-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cluster storage that was disconnected from the workbench doesn't upda…
…te it's size info (#3481)
- Loading branch information
Showing
9 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 13 additions & 2 deletions
15
frontend/src/concepts/dashboard/DashboardPopupIconButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
import React from 'react'; | ||
import { Button, ButtonProps, Icon } from '@patternfly/react-core'; | ||
import { Button, ButtonProps, Icon, IconComponentProps } from '@patternfly/react-core'; | ||
|
||
type DashboardPopupIconButtonProps = Omit<ButtonProps, 'variant' | 'isInline'> & { | ||
icon: React.ReactNode; | ||
iconProps?: Omit<IconComponentProps, 'isInline'>; | ||
}; | ||
|
||
/** | ||
* Overriding PF's button styles to allow for a11y in opening tooltips or popovers on a single item | ||
*/ | ||
const DashboardPopupIconButton = ({ | ||
icon, | ||
iconProps, | ||
...props | ||
}: DashboardPopupIconButtonProps): React.JSX.Element => ( | ||
<Button icon={<Icon isInline>{icon}</Icon>} variant="plain" isInline {...props} /> | ||
<Button | ||
icon={ | ||
<Icon isInline {...iconProps}> | ||
{icon} | ||
</Icon> | ||
} | ||
variant="plain" | ||
isInline | ||
{...props} | ||
/> | ||
); | ||
|
||
export default DashboardPopupIconButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters