Skip to content

Commit

Permalink
use ordered list to show the boot order in expanded list
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Nov 26, 2019
1 parent 8aca2f3 commit 2c8629f
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -14,7 +14,9 @@ export const BootOrderSummaryEmptyState = ({ devices }: BootOrderSummaryEmptySta
setIsExpanded(!isExpanded);
};

// Note(Yaacov): className='text-secondary' is a hack to fix TextVariants being overriden.
// Note(Yaacov):
// className='text-secondary' is a hack to fix TextVariants being overriden.
// Using <ol> because '@patternfly/react-core' <List> currently miss isOrder parameter.
return (
<>
<Text component={TextVariants.p} className="kubevirt-boot-order-summary__empty-text">
Expand All @@ -30,11 +32,11 @@ export const BootOrderSummaryEmptyState = ({ devices }: BootOrderSummaryEmptySta
isExpanded={isExpanded}
className="kubevirt-boot-order-summary__expandable"
>
<List>
<ol>
{options.map((option) => (
<ListItem key={deviceKey(option)}>{deviceLabel(option)}</ListItem>
))}
</List>
</ol>
</Expandable>
)}
</>
Expand Down

0 comments on commit 2c8629f

Please sign in to comment.