Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Nov 28, 2024
1 parent 4823c49 commit 1b26f3e
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 49 deletions.
7 changes: 6 additions & 1 deletion app/assets/stylesheets/patternfly_colors_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
color: var(--pf-v5-global--palette--black-500);
}
.pf-v5-c-text-input-group__text-input {
// color: var(--pf-v5-global--palette--black-500);
color: var(--pf-v5-global--palette--black-1000);
&::placeholder {
color: var(--pf-v5-global--palette--black-500);
}
::placeholder {
color: var(--pf-v5-global--palette--black-500);
}
}
}
}
Expand Down
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@
},
"dependencies": {
"@module-federation/utilities": "^1.7.0",
"@patternfly/patternfly": "^5.1.0",
"@patternfly/react-charts": "^7.3.0",
"@patternfly/react-core": "^5.1.1",
"@patternfly/react-icons": "^5.1.1",
"@patternfly/react-styles": "^5.1.1",
"@patternfly/react-table": "^5.1.1",
"@patternfly/react-tokens": "^5.1.1",
"@theforeman/vendor": "^13.1.0",
"graphql-tag": "^2.11.0",
"intl": "~1.2.5",
Expand Down Expand Up @@ -64,7 +57,7 @@
"style-loader": "^1.3.0",
"stylelint": "^9.3.0",
"stylelint-config-standard": "^18.0.0",
"tabbable": "^6.2.0",
"tabbable": "~5.2.0",
"victory-core": "~36.8.6",
"victory-pie": "~36.8.6",
"webpack": "^5.75.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ import {
GridItem,
Title,
} from '@patternfly/react-core';
import {
Table /* data-codemods */,
TableText,
Tr,
Tbody,
Td,
} from '@patternfly/react-table';
import { Table, TableText, Tr, Tbody, Td } from '@patternfly/react-table';
import URI from 'urijs';
import { push } from 'connected-react-router';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ const DetailsCard = ({
/>
</>
),
hasNoOffset: false,
className: undefined,
}}
>
<CardTitle>{__('Details')}</CardTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { Button } from '@patternfly/react-core';
import { PencilAltIcon } from '@patternfly/react-icons';
import {
Table /* data-codemods */,
Tr,
Tbody,
Td,
} from '@patternfly/react-table';
import { Table, Tr, Tbody, Td } from '@patternfly/react-table';
import { translate as __ } from '../../../../../../common/I18n';
import { foremanUrl } from '../../../../../../common/helpers';
import { useAPI } from '../../../../../../common/hooks/API/APIHooks';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import {
Table /* data-codemods */,
Thead,
Tbody,
Tr,
Th,
} from '@patternfly/react-table';
import { Table, Thead, Tbody, Tr, Th } from '@patternfly/react-table';
import {
Toolbar,
ToolbarContent,
Expand Down Expand Up @@ -135,7 +129,7 @@ export const ParametersTable = ({
<Th>{columnNames.type}</Th>
<Th>{columnNames.value}</Th>
<Th>{columnNames.source}</Th>
<Th aria-label='actions'/>
<Th aria-label="actions" />
</Tr>
</Thead>
<Tbody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import {
Table /* data-codemods */,
Thead,
Tbody,
Tr,
Th,
Td,
} from '@patternfly/react-table';
import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
import { Spinner } from '@patternfly/react-core';
import { SearchIcon, ExclamationCircleIcon } from '@patternfly/react-icons';
import { STATUS } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ const CardTemplate = ({
/>
</>
),
hasNoOffset: false,
className: undefined,
},
})}
onExpand={expandable && onExpandCallback}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,10 @@ const HostsIndex = () => {
))}
<Td isActionCell>
{rowActions.length ? (
<ActionsColumn items={rowActions} />
<ActionsColumn
shouldFocusFirstItemOnOpen={false}
items={rowActions}
/>
) : null}
</Td>
</Tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TaxonomyDropdown = ({ taxonomyType, currentTaxonomy, taxonomies }) => {
const onSelect = () => {
setIsOpen(!isOpen);
};
const onSearchInputChange = (value, event) => {
const onSearchInputChange = event => {
setSearchValue(event.target.value);
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import {
Table as PFTable /* data-codemods */,
Table as PFTable,
Thead,
Tr,
Th,
Expand Down Expand Up @@ -94,11 +94,11 @@ export const Table = ({
isDeleteable && {
title: __('Delete'),
onClick: () => onDeleteClick({ id, name }),
isAriaDisabled: !canDelete,
isDisabled: !canDelete,
},
...extendActions.map(action => ({
...action,
isAriaDisabled: action.isDisabled,
isDisabled: action.isDisabled,
})),
].filter(Boolean);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
width: min-content;
}
}
.pf-c-table tr.pf-m-hoverable {
.pf-v5-c-table tr.pf-m-clickable {
cursor: default;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const AutoCompleteMenu = ({ results, error }) => {
.map(category => (
<Fragment key={`${category}-fragment`}>
{!!itemIndex && <Divider key={`${category}-divider`} />}
<MenuGroup label={category} key={category}>
<MenuGroup label={category || null} key={category}>
<MenuList>{getMenuItemsByCategory(category)}</MenuList>
</MenuGroup>
</Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

.foreman-search-bar {
display: flex;
width: 100%;
.pf-v5-c-dropdown.pf-m-align-right {
width: unset;
}
Expand Down

0 comments on commit 1b26f3e

Please sign in to comment.